Re: How can I tell PHP what user to be?
| From: | user at domain dot invalid | Date: | Wed, 16 Apr 2003 07:26:09 +0000 |
| Subject: | Re: How can I tell PHP what user to be? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144074@lists.php.net to get a copy of this message | ||
Daniel R. Anderson wrote:
Is there a function to tell PHP to run as an arbitrary user?Short answer: no.
I keep running into problems where PHP does something as user 48 and I want it to use my username.Gives us more info as to system your are running PHP under. If you are running PHP as an apache module the PHP will run as whatever user Apache is running under ... Longer answer: If running PHP on some Unixen then you may want to look into the varioys system()/exec() calls PHP can do and look into the Unix su command? Jean-Christian Imbeault