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.1.0, PHP 5)
getmygid — Get PHP script owner's GID
Beschreibung
int getmygid
( void
)
Gets the group ID of the current script.
Rückgabewerte
Returns the group ID of the current script, or FALSE on error.
Siehe auch
- getmyuid() - Zeigt die User-ID des Besitzers eines PHP-Scripts
- getmypid() - Prozess-Id eines Scripts
- get_current_user() - Liefert den Benutzernamen des Besitzers des aktuellen PHP-Skripts
- getmyinode() - Ermittelt den Inode eines Skripts
- getlastmod() - Uhrzeit der letzten Änderung eines Scripts
