Permission denied error.

Ask about a PHP problem here.
Post Reply
Alg0r1thm
Posts: 64
Joined: Mon Sep 12, 2011 7:57 pm

Permission denied error.

Post 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
Last edited by jacek on Thu Oct 13, 2011 11:14 pm, edited 1 time in total.
Reason: title made more descriptive of the topic.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Permission denied error.

Post 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.
Image
Post Reply