Jump to content

Permission Denied error with fopen()


jj0914

Recommended Posts

I wrote a php script to append content to a local text file.  right now I am seeing Permission Denied error every time when I run the script.

 

if I move the text file under /tmp, it's fine.  But it doesn't allow me to read/write/append in different folders.

 

the permission and user/usergroup for the folder is

drwxrwxrwx  2 apache apache

 

the permission and user/usergroup for the file is

-rw-rw-rw- 1 apache apache

 

 

Link to comment
https://forums.phpfreaks.com/topic/126607-permission-denied-error-with-fopen/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.