Skip to content

Instantly share code, notes, and snippets.

@namklabs
Created January 20, 2016 17:00
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 namklabs/3a14ffb64d61a2fc112c to your computer and use it in GitHub Desktop.
Save namklabs/3a14ffb64d61a2fc112c to your computer and use it in GitHub Desktop.
find username executing PHP process
# http://stackoverflow.com/questions/9557646/php-mkdir-permissions-denied-mac
$processUser = posix_getpwuid(posix_geteuid());
echo($processUser['name']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment