Re: Help needed / failed to open stream: Permission denied
| From: | Mark Rees | Date: | Wed, 19 Oct 2005 13:10:27 +0000 |
| Subject: | Re: Help needed / failed to open stream: Permission denied | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224325@lists.php.net to get a copy of this message | ||
>
> > This is line 57 $file_handle = fopen("./" . $file_name, "r");
>
> It seems that the user your web server runs as may not have permission to
> open that file. Also, you might want to double check that ./$ile_name is a
> valid path.
And if you're planning to write to the file, you need to specify that. "r"
means "open for reading only". Read up on the possibilities here:
http://uk2.php.net/fopen