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:[EMAIL PROTECTED]]
> 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
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to