Forum Moderators: phranque
I have a PHP page that is supposed to create an empty file, using "system" command, then open it ("fopen") na dwrite some stuff in there...
But, when I point to the reffering page, it says ...
"Permission denied" and the file is not created..
Because I don't know much about servers, is there somewhere in my Linux filesystem that I should tell PHP to create the file where it will not have such restrictions?
when you tell PHP to create a file, which 'user' does this?
The Apache user?
To answer that second question though, when PHP is used as an Apache module [php.net] it inherits Apache's user permissions (typically those of the "nobody" user).