Hi,
I wrote this code:
<?php
$fh=fopen("o_carte.txt","a");
$ok=fwrite($fh,"This is a good text.\n");
echo "<br>Rezult: $ok";
fclose($fh);
?>
and I receive errors three errors:
1. fopen("o_carte.txt","a");- permission denied in
/usr/local/apache/htdocs/ex-007.php on line 2;
2. Supplied argument is not a valid File-Handle
resource in /usr/local/apache/htdocs/ex-007.php
on line3;
3. The same error on line 5;
The file o_carte.txt exists in /usr/local/apache/htdocs
I work on root privilegies.
Many thanks
Micki 🙁