473,538 Members | 16,259 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
3
5,372
thread by: Dell Sala | last post Jul 16 '05 by: Wes Bailey
I have recently enabled the PHP 4.2.1 that comes pre-installed on OS X. After making all the prescribed changes to the httpd.conf file php seems to work fine. I would like to make some changes to the php.ini file, but I can't find it. phpinfo() tells me that it is in /usr/lib but don't see the file there (or anywhere else). Even after...
0
1,927
thread by: Bertrand Mollinier Toublet | last post Jul 16 '05 by: Bertrand Mollinier Toublet
Hi, there is an apparently relatively well known issue with Apache with PHP as a module and content-type negociation, whereby the very setup of PHP as a module for Apache requires that a new (I would say "fake") mime type x-httpd-php be created, which clashes with content type negociation, having Apache consider php source file as being of...
0
2,062
thread by: Ziggi | last post Jul 16 '05 by: Ziggi
Hi ! I have an ISAPI instalation of PHP over IIS5 server on Windows 2000. Everything works fine but as I am under website development I would like to keep PHP error messages turned on - for my development purpose. Unfortunately, that concludes that in case somebody types a fake address like: http://www.myurl/xyz.php the server replies...
2
1,887
thread by: michela rossi | last post Jul 16 '05 by: Tom Thackrey
Anyone know of a good, cheap PHP/MySQL bugs database around? $100 kind of range. Thanks, Michela.
2
6,077
thread by: Marcus | last post Jul 16 '05 by: Zac Hester
I am having some problems with trying to perform calculations on time fields. Say I have a start time and an end time, 1:00:00 and 2:30:00 (on a 24 hour scale, not 12). I want to find the difference in minutes, divide this result by a predefined size of interval, and make a loop that runs this many times. For example, with an interval size...
1
2,378
thread by: James | last post Jul 16 '05 by: slapkicksy
What is the best way to add a new record to a MYSQL DB using a FORM and PHP ? Any examples or URLS ? Thanks
2
2,158
thread by: Daniel C Bastos | last post Jul 16 '05 by: Daniel C Bastos
i'm looking for a way to: 1. start a new process (exec(), proc_open(), popen(), whatever()) 2. sleep(some_secs); 3. if the process is still running, kill it. 4. otherwise, go to 1. any ideas on this? --
0
2,096
thread by: Madhusudan Singh | last post Jul 16 '05 by: Madhusudan Singh
Hi I am looking for the above as my php version (Redhat) is that. Call me lazy, but I do not wish to compile php unless it becomes absolutely necessary, as it has been working fine so far. I have searched google for it, but to no avail so far. Does anyone know a source for it ? Upgrading to 4.2.3 is an option, but it will require...
3
4,665
thread by: Marcus | last post Jul 16 '05 by: Cl1mh4224rd
I know from php.net that when register_globals is turned on, session_start(); session_unset(); session_destroy(); will succeed in unsetting all session variables and then destroying the session. I also read on the site that when using $_SESSION, you shouldn't use session_unset, but instead should use unset() to accomplish the 2nd of...
2
21,692
thread by: sky2070 | last post Jul 16 '05 by: skate
session_start(); $_SESSION++; print 'You have visited here '.$_SESSION.' times.'; returned: Warning: session_start() : open(/tmp\sess_c8bf2007256f6e15a938c0254adb21e4, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\session.php on line 3
1
5,120
thread by: Steven | last post Jul 16 '05 by: NotIan
I actually have two questions: 1. I try to get current time, but the time I got is 1 hour different from my local time. I assume it is caused by Time Zone. So is there any easy way to fix this? I assume that I can first get the Time Zone of the server by using the T option in date, and then using my local Time Zone to calculate the...
10
20,021
thread by: Jo | last post Jul 16 '05 by: Jo
Hello I am a web designer who is slowly trying to learn more about web development. I have a client who would like to drive their website using a database so I am now in the perfect situation to move my skills forward. I know a little about databases or the scripting languages that connect them to web pages (is that the right...
2
5,618
thread by: Joca | last post Jul 16 '05 by: Cl1mh4224rd
Hi. I have a problem with a dirname. I can“t read a file if i write this code: <?php $user = $_REQUEST; $filename = dirname(_FILE_).'/../revadv/$user'; $lines = file($filename); ?>
0
2,439
thread by: Roswitha Schoppe-Jantzen | last post Jul 16 '05 by: Roswitha Schoppe-Jantzen
Hi, I want to get all files, that exist in a specific url. I use the opendir and readdir-function - It ist all right, when I use directories like "." or "./test". But I want to use a directory as a complete url like "http://www....com" . The opendir-function-Error is "Invalid argument". Can anyone help me?
2
2,890
thread by: eowyn | last post Jul 16 '05 by: Chris Krasnichuk
Hi everyone! I've installed Apache + PHP. When I try to access a PHP script file via my browser, i get the typical message to open it in an editor or to save it in my computer, instead of open de file in the browser. Can anybody give me a solution? Thanks.
4
26,667
thread by: Wald | last post Jul 16 '05 by: Jeffrey Silverman
Hello group, I've got a script here that sends emails with an attachment to an email address that is retrieved from an html form. The email sending code is include below. The problem: when sending the email to certain email servers, the attachment section of the email gets removed and I end up with an attachment of zero kb. Other servers...
1
1,720
thread by: PHPkemon | last post Jul 16 '05 by: Justin Koivisto
Hello, I'm fairly new to PHP and MySQL but know the basics to create a dynamic page. To get to know PHP and MySQL a little better I want to create a simple webshop. (yeah why start small, right ;-) I think I've figured out how to do the main things like storing products in de database by an form and then showing the products on the pages...
1
2,100
thread by: w i l l | last post Jul 16 '05 by: André Nęss
Is there a module or library provided to PHP that parses XML? TIA w i l l
0
1,465
thread by: zungmonkey | last post Jul 16 '05 by: zungmonkey
Anyone managed to sucessfully compile PHP 5.0 beta on RedHat 7.3 yet? The new XML handling requires updated libxml2 so's and its a mission getting all the RPM dependancies to "agree"
1
8,720
thread by: Steve Fitzgerald | last post Jul 16 '05 by: Zac Hester
The below code works greate for displaying a monthly calendar, but I'm trying to modify it so that it only shows a seven day week calendar. What should I do to modify it. <?php function getDaysInMonth($thisYear,$thisMonth){ $date=getdate(mktime(0,0,0,$thisMonth+1,0,$thisYear)); return $date+1; } function getArrayMonth($datetime){
3
4,472
thread by: Gabriel | last post Jul 16 '05 by: Allodoxaphobia
Hello everybody. I have a question about how to protect my PHP-script from all unauthorized access. I have a PHP-script on my web server and this PHP-script should only be accessible from _one_ IP-address. Right now I am using "$_SERVER" to check if the person that wishes to access my PHP-script is authorized or not but I believe that...
3
35,689
thread by: Ernest Kim | last post Jul 16 '05 by: C G W
Is there a way to get the URL of the php script being called? For example, in my web browser I goto the URL: "http://www.foo.com/foo.php", how do I print out "http://www.foo.com/foo.php" in the foo.php script? Is it stored in a variable some where? I'd like to do this for error handling for some functions I'm writing. -Ernie
0
1,729
thread by: Adams-Blake Co. | last post Jul 16 '05 by: Adams-Blake Co.
If we use php-cgiwrap, is there any kind of performance hit? Will it take PHP scripts longer to start up or to run? Thanks, Al
0
1,693
thread by: Simon | last post Jul 16 '05 by: Simon
Dear all, Concerning three session variables, it can work in PHP Version 4.0.4pl1, However it seems not OK in PHP Version 4.3.1 with only two of three variables valid when debug the program. Why? Please give me possible solution, thanks Regards, Simon
5
2,738
thread by: Scott D | last post Jul 16 '05 by: 2metre
I am trying to check and see if a field is posted or not, if not posted then assign $location which is a session variable to $location_other. If it is posted then just assign it to $location_other I keep getting "Notice: Undefined index: location_other" referring to (!($_POST)) { $location_other = $location; } else

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.