Re: Quick question: PHP user?
| From: | Curt Zirzow | Date: | Fri, 10 Oct 2003 22:11:08 +0000 |
| Subject: | Re: Quick question: PHP user? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165804@lists.php.net to get a copy of this message | ||
On Fri, 10 Oct 2003 16:44:37 -0500, Grant Rutherford <grutherford@iders.ca> wrote:
Hi, Just a quick question... What user does php run as on linux? Is it the Apache user? Is there some way to tell? I need to be able to set a directory so that only PHP can access it.You can figure who apache/php is running as by using shell_exec() on the system command 'whoami': echo shell_exec('whoami'); HTH, Curt