On Sun, Oct 31, 2010 at 13:50, Ryan Sun ryansu...@gmail.com wrote:
which user it is executed as when request a php script on browser?(suppose
we are on a shared LAMP hosting)
Find out:
?php echo trim(`whoami`); ?
--
/Daniel P. Brown
Dedicated Servers, Cloud and Cloud Hybrid
which user it is executed as when request a php script on
browser?(suppose we are on a shared LAMP hosting)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If its Apache on Linux (as most hosting will be) then the user will generally
be either apache, www, or http.
Thanks,
Ash
http://www.ashleysheridan.co.uk
There isn't a php user. If php scripts are executed through the web server,
they belong to the server. If they are cli scripts, then they belong to the
user that executed them, or the user the process that executed them is running
as.
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply
4 matches
Mail list logo