RE: [PHP] User/Group
| From: | Don Read | Date: | Thu, 17 Apr 2003 04:43:14 +0000 |
| Subject: | RE: [PHP] User/Group | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144228@lists.php.net to get a copy of this message | ||
On 17-Apr-2003 Vincent M. wrote:
> Hello,
>
> Is there any way to know from PHP global variables the USER and the
> group under which apache/php run ?
> For example, we wan know the server admin :
> $HTTP_SERVER_VARS["SERVER_ADMIN"]
>
http://www.php.net/manual/en/ref.posix.php
posix_getlogin();
posix_getpwnam(posix_geteuid());
posix_getgrgid(posix_getegid());
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.