Skip to content

Instantly share code, notes, and snippets.

@julienbourdeau
Created November 2, 2012 09:34
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 julienbourdeau/3999772 to your computer and use it in GitHub Desktop.
Save julienbourdeau/3999772 to your computer and use it in GitHub Desktop.
function_exists('posix_getpwuid')
if ( function_exists('posix_getpwuid') ) {
$this->wwwUser = \posix_getpwuid(\posix_geteuid());
} else {
$this->wwwUser = get_current_user();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment