Cannot write files with PHP

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Cannot write files with PHP

Postby hlstriker » 26. April 2009 05:38

I'm trying to write a file using PHP but it gives me the following error.

Warning: fopen(/opt/lampp/htdocs/test.txt) [function.fopen]: failed to open stream: Permission denied in /opt/lampp/htdocs/test.php on line 11


Anyone know how I can fix this?
hlstriker
 
Posts: 1
Joined: 26. April 2009 05:32

Re: Cannot write files with PHP

Postby wmeinhart » 27. April 2009 22:09

there is no Permission for the User running apache, give write-access for nobody and nogroupe; these are the standardusers for apache.
User avatar
wmeinhart
 
Posts: 36
Joined: 10. June 2003 19:45
Location: Hamburg


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 65 guests