Created
February 9, 2013 13:17
-
-
Save rahul286/4745292 to your computer and use it in GitHub Desktop.
Snippet to check various linux-users involved with PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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