posix_geteuid(3) php man page | unix.com

Man Page: posix_geteuid

Operating Environment: php

Section: 3

POSIX_GETEUID(3)							 1							  POSIX_GETEUID(3)

posix_geteuid - Return the effective user ID of the current process

SYNOPSIS
int posix_geteuid (void )
DESCRIPTION
Return the numeric effective user ID of the current process. See also posix_getpwuid(3) for information on how to convert this into a use- able username.
RETURN VALUES
Returns the user id, as an integer
EXAMPLES
Example #1 posix_geteuid(3) example This example will show the current user id then set the effective user id to a separate id using posix_seteuid(3), then show the difference between the real id and the effective id. <?php echo posix_getuid()." "; //10001 echo posix_geteuid()." "; //10001 posix_seteuid(10000); echo posix_getuid()." "; //10001 echo posix_geteuid()." "; //10000 ?>
SEE ALSO
posix_getpwuid(3), posix_getuid(3), posix_setuid(3), POSIX man page GETEUID(2). PHP Documentation Group POSIX_GETEUID(3)
Related Man Pages
setregid(2) - redhat
posix_geteuid(3) - php
imap_mailboxmsginfo(3) - php
posix_setgid(3) - php
posix_setuid(3) - php
Similar Topics in the Unix Linux Community
file name Manipulation using sed
problem in arithmetic operations
Help with grepping and line number
getting the sum of numbers
Remove Double Value at Latest Output