Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

<?
$group = posix_getgrgid(posix_getgid());
print("Group: {$group['name']}
\n");
?>


array posix_getgrnam(string group)


The posix_getgrnam function returns an array describing access to the group database.
The elements of the returned array are gid, members, name, and an entry of each member
of the group.


array posix_getgroups()


The posix_getgroups function returns supplementary group IDs.


string posix_getlogin()


Use posix_getlogin to get the login name of the user executing the PHP engine.


integer posix_getpgid()


The posix_getpgid function returns the group ID for the user executing the PHP engine.


integer posix_getpgrp()


The posix_getpgrp function returns the current process group ID.


integer posix_getpid()


The posix_getpid function returns the process ID.


integer posix_getppid()


The posix_getppid function returns the process ID of the parent process.


array posix_getpwnam(string user)


The posix_getpwnam function returns an array describing an entry in the user database.
The elements of the array are dir, gecos, gid, name, passwd, shell, and uid.


array posix_getpwuid(integer user)

Free download pdf