fwrite will not work

From: Date: Tue, 12 Sep 2000 18:44:56 +0000
Subject: fwrite will not work
Groups: php.general 
Request: Send a blank email to php-general+get-16417@lists.php.net to get a copy of this message
I have read and reread the documentation on this subject and I am still way confused. I am attempting to save that contents of $prepend to the file named by $filename. Problem: It will not work. Help!! $filename "/www/dhtdocs/aboutus.php"; $prepend "A whole bunch of html code"; $file = fopen ($filename, "w") or die ("unable to open $filename for read"); fwrite ($file, $prepend); fclose ($file); Lance Earl

« previous php.general (#16417) next »