Re: Strange File write Problem
| From: | Richard Lynch | Date: | Wed, 03 Oct 2001 04:17:43 +0000 |
| Subject: | Re: Strange File write Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69691@lists.php.net to get a copy of this message | ||
What's in $free?...
How about checking some error codes?
http://php.net/fputs
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Gary <gbland@worldnet.att.net>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Sunday, September 23, 2001 4:21 PM
Subject: Strange File write Problem
> The code below works on every server that I have tried it on, till now.
> On this 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?
>
> <?php
>
> $filename = "/path/to/file/free.txt";
>
> $handle= fopen($filename,'w+');
>
> fputs($handle, $free);
>
> fclose($handle);
> ?>
>
> TIA
> Gary
>