Skip to content

Instantly share code, notes, and snippets.

@rahul286
Created February 9, 2013 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahul286/4745292 to your computer and use it in GitHub Desktop.
Save rahul286/4745292 to your computer and use it in GitHub Desktop.
Snippet to check various linux-users involved with PHP
<?php
echo 'Current script owner: ' . get_current_user();
$processUser = posix_getpwuid(posix_geteuid());
echo '<br/>Current process owner: ' . $processUser['name'];
phpinfo();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment