Re: Apache user
| From: | Joe Conway | Date: | Thu, 05 Apr 2001 21:19:03 +0000 |
| Subject: | Re: Apache user | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47322@lists.php.net to get a copy of this message | ||
Actually no need for that if you use backticks. See
http://www.php.net/manual/en/html/language.operators.execution.html#language
.operators.execution
Joe
----- Original Message -----
From: "Johnson, Kirk" <kjohnson@zootweb.com>
To: "PHP User Group" <php-general@lists.php.net>
Sent: Thursday, April 05, 2001 11:32 AM
Subject: RE: [PHP] Apache user
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>