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
posix_getpwuid(3) - php
numfmt_get_attribute(3) - php
posix_getegid(3) - php
posix_getpwnam(3) - php
posix_setuid(3) - php
Similar Topics in the Unix Linux Community
Converting to Uppercase
file name Manipulation using sed
Help with grepping and line number
help pls! need to move and copy pattern...
To fetch specific words from a file