posix_getgid(3) php man page | unix.com

Man Page: posix_getgid

Operating Environment: php

Section: 3

POSIX_GETGID(3) 							 1							   POSIX_GETGID(3)

posix_getgid - Return the real group ID of the current process

SYNOPSIS
int posix_getgid (void )
DESCRIPTION
Return the numeric real group ID of the current process.
RETURN VALUES
Returns the real group id, as an integer.
EXAMPLES
Example #1 posix_getgid(3) example This example will print out the real group id, even once the effective group id has been changed. <?php echo 'My real group id is '.posix_getgid(); //20 posix_setegid(40); echo 'My real group id is '.posix_getgid(); //20 echo 'My effective group id is '.posix_getegid(); //40 ?>
SEE ALSO
posix_getgrgid(3), posix_getegid(3), posix_setgid(3), POSIX man page GETGID(2). PHP Documentation Group POSIX_GETGID(3)
Related Man Pages
getgid(2) - netbsd
setregid(2) - ultrix
setregid(2) - hpux
getegid(2) - netbsd
posix_getegid(3) - php
Similar Topics in the Unix Linux Community
Rules for Homework &amp; Coursework Questions Forum
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Denial Of Service Attack Update