Re: Won't work online with PHP 4.06

From: Date: Thu, 27 Sep 2001 18:35:45 +0000
Subject: Re: Won't work online with PHP 4.06
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-69026@lists.php.net to get a copy of this message
That doesn''t work. It is a problem with the server or the way PHP was set-up. I don't know where to start looking. It seem to only not work on their servers with php4.06 Reductor wrote:
i use the following method $file = "/path/to/file/free.txt"; $fp = fopen($file, "w"); fwrite($fp, $free); fclose($fp); ----- Original Message ----- From: "Gary" <gbland@worldnet.att.net> To: <php-general@lists.php.net> Sent: Friday, September 28, 2001 3:37 AM Subject: [PHP] Won't work online with PHP 4.06
On our in house test serverrunning 4.06 this code works fine.On host server it will create the file name but will not write to it. If you create a file and upload it, it will erase everything but not write. Any Ideas why? Where should we start loking for the problem?
        <?php
                  $filename = "/path/to/file/free.txt";
                 $handle= fopen($filename,'w+');
                fputs($handle, $free);
                fclose($handle);
               ?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#69026) next »