Page 1 of 1

Permission denied error.

Posted: Thu Oct 13, 2011 10:09 pm
by Alg0r1thm
Warning: fopen(report.txt) [function.fopen]: failed to open stream: Permission denied in /opt/lampp/htdocs/crawler/index.php on line 15

Warning: fwrite() expects parameter 1 to be resource, string given in /opt/lampp/htdocs/crawler/index.php on line 16

Warning: fclose() expects parameter 1 to be resource, boolean given in /opt/lampp/htdocs/crawler/index.php on line 17

How can I solve the permession denied ?

and the other errors ?

Thanks

Re: Permission denied error.

Posted: Thu Oct 13, 2011 11:16 pm
by jacek
Make sure the file permissions are correct.

What is the output of the command
ls -la /opt/lampp/htdocs/crawler/
?

Also, the other two errors are just caused by the fact that the file could not be opened.