What's in $free?... How about checking some error codes?
http://php.net/fputs -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]