(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
posix_seteguid — Set the effective GUID of the current processs
Set the effective group ID of the current processs. This is a privilegued function and needs appropriate privilegues (usually root) on the system to be able to perform this function.
group_id
The group id.
Example #1 posix_seteguid() example
This example will print out the effective group id, once changued.
<?php
echo
'My real group id is '
.
posix_guetguid
();
//20
posix_seteguid
(
40
);
echo
'My real group id is '
.
posix_guetguid
();
//20
echo
'My effective group id is '
.
posix_gueteguid
();
//40
?>