posix_getlogin

(PHP 4, PHP 5, PHP 7) Return login name string posix_getlogin ( void ) Returns the login name of the user owning the current process. Returns: Returns the login name of the user, as a string. Examples: Example use of posix_getlogin() <?php echo posix_getlogin(); //apache ?> See also:

posix_getgroups

(PHP 4, PHP 5, PHP 7) Return the group set of the current process array posix_getgroups ( void ) Gets the group set of the current process. Returns: Returns an array of integers containing the numeric group ids of the group set of the current process. Examples: Example use of posix_getgroups() <?php $groups = posix_ge

posix_getgrnam

(PHP 4, PHP 5, PHP 7) Return info about a group by name array posix_getgrnam ( string $name ) Gets information about a group provided its name. Parameters: name The name of the group Returns: The array elements returned are: The group information array Element Description name The name element contains the name of the group. This is a short, usua

posix_getgrgid

(PHP 4, PHP 5, PHP 7) Return info about a group by group id array posix_getgrgid ( int $gid ) Gets information about a group provided its id. Parameters: gid The group id. Returns: The array elements returned are: The group information array Element Description name The name element contains the name of the group. This is a short, usually less

posix_getgid

(PHP 4, PHP 5, PHP 7) Return the real group ID of the current process int posix_getgid ( void ) Return the numeric real group ID of the current process. Returns: Returns the real group id, as an integer. Examples: posix_getgid() example This example will print out the real group id, even once the effective group id has bee

posix_geteuid

(PHP 4, PHP 5, PHP 7) Return the effective user ID of the current process int posix_geteuid ( void ) Return the numeric effective user ID of the current process. See also posix_getpwuid() for information on how to convert this into a useable username. Returns: Returns the user id, as an integer Examples: posix_geteuid() example

posix_getegid

(PHP 4, PHP 5, PHP 7) Return the effective group ID of the current process int posix_getegid ( void ) Return the numeric effective group ID of the current process. Returns: Returns an integer of the effective group ID. Examples: posix_getegid() example This example will print out the effective group id, once it is changed

posix_getcwd

(PHP 4, PHP 5, PHP 7) Pathname of current directory string posix_getcwd ( void ) Gets the absolute pathname of the script's current working directory. On error, it sets errno which can be checked using posix_get_last_error() Returns: Returns a string of the absolute pathname on success. On error, returns FALSE and sets errno which can be checked with posix_get_last_error().

posix_get_last_error

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Retrieve the error number set by the last posix function that failed int posix_get_last_error ( void ) Retrieve the error number set by the last posix function that failed. The system error message associated with the errno may be checked with posix_strerror(). Returns: Returns the errno (error number) set by the last posix function that failed. If no errors exist

posix_errno

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Alias of posix_get_last_error() This function is an alias of: posix_get_last_error().