\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
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 "
2 matches
Mail list logo