To clarify, the getmygid() function gets the gid of the PHP script, that is the gid of the file.
To get the effective gid of the running PHP engine, use the posix_getegid() function.
getmygid
(PHP 4 >= 4.0.7, PHP 5)
getmygid — Get PHP script owner's GID
Description
int getmygid
( void
)
Gets the group ID of the current script.
Return Values
Returns the group ID of the current script, or FALSE on error.
getmygid
07-May-2006 07:04
