(PHP 4 >= 4.1.0, PHP 5)
Returns the group ID of the current script, or FALSE on error.
See also getmyuid(), getmypid(), get_current_user(), getmyinode(), and getlastmod().
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.