Re: [PHP] a question about user and permission on linux

2010-11-01 Thread Daniel P. Brown
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

[PHP] a question about user and permission on linux

2010-10-31 Thread Ryan Sun
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

Re: [PHP] a question about user and permission on linux

2010-10-31 Thread a...@ashleysheridan.co.uk
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

Re: [PHP] a question about user and permission on linux

2010-10-31 Thread a...@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