Re: Won't work online with PHP 4.06

From: Date: Thu, 27 Sep 2001 17:03:31 +0000
Subject: Re: Won't work online with PHP 4.06
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69023@lists.php.net to get a copy of this message
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 (#69023) next »