RE: [PHP] Apache user
| From: | Johnson, Kirk | Date: | Thu, 05 Apr 2001 18:32:06 +0000 |
| Subject: | RE: [PHP] Apache user | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-47306@lists.php.net to get a copy of this message | ||
Put the call to "whoami" in a call to exec() from inside a PHP script.
<?
echo exec("whoami");
?>
Kirk
> -----Original Message-----
> From: Joe Conway [mailto:joe.conway@mail.com]
> Sent: Thursday, April 05, 2001 12:26 PM
> To: Chris Mason; PHP User Group
> Subject: Re: [PHP] Apache user
>
>
> > Can anyone tell me how to get the user apache is running as
> from php?
> >
> If you're on Linux/Unix, try:
>
> echo
whoami;
>
> Hope this helps,
>
> Joe