aioobe Asked: 2010-05-20 01:40:09 +0800 CST2010-05-20 01:40:09 +0800 CST 2010-05-20 01:40:09 +0800 CST Figure out php user without shell access 772 Is there a way to figure out which user it is that executes a php-script in a webserver using php-commands? (I don't have shell access to the server running httpd, so I cant use ps.) php users 1 Answers Voted Best Answer joschi 2010-05-20T01:45:43+08:002010-05-20T01:45:43+08:00 Use the function posix_getuid.
Use the function posix_getuid.