Knowledgebase: Information On PHP
What userid does my PHP scripts run under?
Posted by Roy Petersen on Feb-15-2007 12:16 PM
Your PHP scripts will run under the same userid as the webserver (Apache), which is "nobody". Therefore, since your PHP scripts do not run under your userid, you must take this into consideration when you are trying to create, edit, or modify files with your PHP scripts.

Secondly, PHP scripts run under the group "nobody" as well. Therefore, in order to allow PHP to create, modify, and/or delete files within your account, you would need to have world read/write permission on the files and within the directories where the files will be created.