[PHP] PLEASEEE HEEEELP! CAN'T WRITE ON A FILE

2003-01-29 Thread phplam
\test\files\\mifile.txt"; $somecontent = "Add this to the file\n"; $fp = fopen($filename,"wb"); // Write $somecontent to our opened file. //ERROR IS HERE if (!fwrite($fp, $somecontent)) { print "Cannot write to file ($filename)"; exit; } fclose($fp); Thanks a lot in adv phplam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] can't write and read on/from a file - Apache.exe access error

2003-01-26 Thread phplam
iles\\mifile.txt"; $somecontent = "Add this to the file\n"; $fp = fopen($filename,"wb"); //NOTHING IS DISPLAYED echo "this is fgets " .fgets ( $fp ); // Write $somecontent to our opened file. //ERROR IS HERE if (!fwrite($fp, $somecontent)) { print "