posix_setuid

 bool posix_setuid ( int $uid ) 

説明

Set the real user ID of the current process. This is a privileged function that needs appropriate privileges (usually root) on the system to be able to perform this function.

戻り値

Returns TRUE on success or FALSE on failure.