0

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.)

1 Answer 1

3

Use the function posix_getuid.

1
  • 1
    Thanks. That was the key-idea. In the end I used print_r(posix_getpwuid(posix_getuid()));
    – aioobe
    May 19, 2010 at 10:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .