Posted by Erwin Moller on 11/12/07 14:14
skyimai@gmail.com wrote:
> Hi guice,
>
>
> I have designed a php search page..When I entered the search term
>
> it shows me the follwing error..
>
> Warning: fopen(files/admin.jpg) [function.fopen]: failed to open
> stream: Permission denied in C:\Inetpub\vhosts\iswaryammatrimony.com
> \httpdocs\search result.php on line 206
> file error
>
>
> Somebody told me that the file must be allowed to read by server
> administrator..
That was good advice.
PHP cannot open a file because the user that runs PHP doesn't have the
right permissions on that file.
Solution?
1) Find out who runs as PHP
- probably IUSR_<machinename> on IIS/Windows.
- probably nobody, or apache, or www-data on Apache/*nix
2) Give read and/or write permission for this user on the file in question.
Regards,
Erwin Moller
> Pls Guide me..Thanks in advance..
>
> Imai from Sky
> www.adobians.com
>
[Back to original message]
|