Posted by Michael Trausch on 04/04/06 03:49
mouseit101 wrote:
> Whenever i try to write to a file i get:
> Warning: fopen(dateLogFile.txt): failed to open stream: Permission
> denied in **********.com/php/dateLog.php on line 10
>
If you're running on a UNIX-like system, you need to use chmod on the
command line or otherwise manipulate the file permissions, like via SFTP.
'man chmod' (without the quotes) will get you the information that you need.
In short, the web server traditionally runs as a user and group
different from your own, so the file needs o+rw permissions to be read
and written to, respectively.
- Mike
[Back to original message]
|