php man page for posix_geteuid

Query: posix_geteuid

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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
setreuid(2) - redhat
setreuid(2) - ultrix
posix_getpwuid(3) - php
numfmt_get_attribute(3) - php
ssh2_methods_negotiated(3) - php
Similar Topics in the Unix Linux Community
file name Manipulation using sed
Simple scripting.
getting the sum of numbers
Remove Double Value at Latest Output
Unix Join