I can get my script to read a file.... but it won't let me write to it.
When I try to write to it I get a warning:
Warning: fopen("webmasters.html","a") - Permission denied in /home/sites/site31/web/file.php on line 10
Do I have to set permissions to the files? I have no idea why I can't write to the file. If you could help that would be great!
<?php
$filename="webmasters.html";
$handle = fopen ("$filename", "a");
fwrite($handle, $filename);
fclose($handle);
?>