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 — PHP スクリプトの所有者の GID を得る
説明
int getmygid
( void
)
現在のスクリプトのグループ ID を取得します。
返り値
現在のスクリプトのグループ ID を返します。またはエラー時に FALSE を返します。
getmygid
08-May-2006 02:04