Hi,
Can anyone help please? I have a script that writes some text to a file, it works fine on one server, but does not work on another.
the code that is failing looks like this:
$fp = fopen($tagfile,"w") or die("couldn't open file");
fwrite($fp,$edited);
and it fails with the following message:
Warning: fopen(content.php): failed to open stream: Permission denied in (removed url) on line 5
couldn't open file
The server it is failing on is running php version 4.3.11 under Free BSD 4.7
I am guessing this is something to do with file permissions as the code works perfectly on the other server? But how do I go about fixing it to get my script to run?
Thanks