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

(singke) #1

file through the Web server would have arbitrary control over the system. Keep in mind,
however, that PHP can be compiled as a stand-alone executable. In this case it can be
used like any other scripting language.


These functions are wrappers for underlying C functions, usually named by the part after
the posix_ prefix. If you require detailed information, I suggest reading the man pages.


string posix_ctermid()


The posix_ctermid function returns the terminal path name.


<?
print("Terminal Path Name: ". posix_ctermid(). "
\n");
?>


string posix_getcwd()


The posix_getcwd function returns the current working directory.


<?
print ("Current Working Directory: ". posix_getcwd(). "
\n");
?>


integer posix_getegid()


The posix_getegid function returns the effective group ID of the calling process.


integer posix_geteuid()


The posix_geteuid function returns the effective user ID for the process running the
PHP engine.


integer posix_getgid()


The posix_getgid function returns the ID of the current group.


array posix_getgrgiarray posix_getgrgid(integer
group)d(integer group)


The posix_getgrgid 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.

Free download pdf