fopen failing, permission denied
| From: | Dan Baker | Date: | Tue, 28 Feb 2006 23:01:10 +0000 |
| Subject: | fopen failing, permission denied | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-231242@lists.php.net to get a copy of this message | ||
I have the following code snippet:
$h = fopen("$path/file.txt", 'x+');
And it generates the following error:
Warning: fopen(/home/...../myarea/file.txt): failed to open stream:
Permission denied
The path is correct, but the php process doesn't seem to have file
permissions in the folder.
Is there some magic I can do to allow php to have file rights to the
"myarea" folder? (This is on a purchased ISP site)
Thanks
DanB