Hi,
Can you find why I can't write in a file?
The code is:
<?php
$fh=@fopen("jurnal.txt","a");
if(!$fh)
{
die("The file wasn't open.");
}
$ok=fwrite($fh,"These are good sentences.\n");
echo "<br>Rezult: $ok";
fclose($fh);
?>
The file jurnal.txt exists in /usr/local/apache/htdocs
Browserul afiseaza mesajul "The file wasn't open."
Many thanks,
Micki