Re: fopen doesn't work
| From: | Rasmus Lerdorf | Date: | Wed, 14 Jun 2000 15:07:51 +0000 |
| Subject: | Re: fopen doesn't work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1833@lists.php.net to get a copy of this message | ||
> <?
> ...
> $file =fopen("/usr/local/apache/htdocs/php/myfile","w");
> ...
> ?>
>
> I'm getting acces denied. I have set the rights to this repertory to
> 0777.
fopen() works fine. You probably don't have access to that directory or
to one of the directories along the path to that directory. The easiest
way to check this is to login to your web server and do a "su -
nobody" and see if you can create a file in that dir.
-Rasmus