PHP Developer’s Dictionary IT-SC book 370 Description The yp_get_default_domain() function returns the default domain of the node. This is often used for retrieving the domain parameter for subsequent NIS calls. This function returns false, 0, if the function encounters an error. yp_order() Syntax int yp_order(string domain, string map); Description The yp_order() function returns the order number for a map in the specified domain . This function returns false, 0, if an error occurs. yp_master() Syntax string yp_master(string domain, string map); Description The yp_master() function returns the machine name of the master NIS server for a map in the specified domain . This function returns false, 0, if it is not successful. yp_match() Syntax string yp_match(string domain, string map, string key); Description The yp_match() function returns the value associated with the parameter key from the specified map for the specified domain . This function returns false, 0 , if it is unsuccessful. yp_first() PHP Developer’s Dictionary IT-SC book 371 Syntax string[] yp_first(string domain, string map); Description The yp_first() function returns the first key/value pair from the named map in the specified domain. If the function encounters an error, false ( 0 ) is returned. yp_next() Syntax string[] yp_next(string domain, string map, string key); Description The yp_next() function returns the next key/value pair in the named map after the specified key for the specified domain . This function returns false, 0 , if an error occurred. yp_errno() Syntax int yp_errno(void); Description The yp_errno() function returns the error code if the previous NIS operation failed (see Table 9.10 ). Table 9.10. Possible Errors Returned by yp_errno() Number Description 1 The arguments to the function are not valid. 2 The Remote Procedure Call, RPC, failed. The domain has been unbound. 3 The server in this domain cannot be bound. 4 The specified map in this server's domain is invalid. 5 The specified key is not valid in the specified map. 6 Internal NIS error. PHP Developer’s Dictionary IT-SC book 372 7 Resource allocation error. 8 No more records in the map database. 9 Communication error with the portmapper. 10 Communication error with ypbind. 11 Communication error with ypserv. 12 The local domain name is not set. 13 The yp database is corrupt. 14 There is a yp version conflict. 15 Access violation. 16 The database is busy. yp_err_string() Syntax string yp_err_string(void); Description The yp_err_string() function returns the error message if the previous NIS operation failed (see Table 9.11 ). Table 9.11. Possible Errors Returned by yp_err_string() Number Description 1 The arguments to the function are not valid. 2 The Remote Procedure Call, RPC, failed. The domain has been unbound. 3 The server in this domain cannot be bound. 4 The specified map in this server's domain is invalid. 5 The specified key is not valid in the specified map. 6 Internal NIS error. 7 Resource allocation error. 8 No more records in the map database. 9 Communication error with the portmapper. 10 Communication error with ypbind. 11 Communication error with ypserv. 12 The local domain name is not set. 13 The yp database is corrupt. 14 There is a yp version conflict. 15 Access violation. 16 The database is busy. POSIX PHP Developer’s Dictionary IT-SC book 373 This section describes the POSIX commands included in PHP4. POSIX (Portable Operating System Interface) is an IEEE standard that was designed to make code easier to port between UNIX operating systems. Ultimately, POSIX is an attempt by a group of vendors to create a single standard program interface for every version of UNIX. The POSIX standard defines how a system function will be called, what information will be returned, and how the information will be formatted. posix_kill() Syntax bool posix_kill(int pid, int sig); Description The posix_kill() function sends the signal specified by sig to the process identified by pid . This function returns false, 0, if the function is not successful. posix_getpid() Syntax int posix_getpid(void); Description The posix_getpid() function returns the process identifier (PID) of the current process. This function returns false, 0, if the function is not successful. posix_getppid() Syntax int posix_getppid(void); Description The posix_getppid() function returns the process identifier (PID) of the parent process of the current process. This function returns false, 0, if the function is not successful. PHP Developer’s Dictionary IT-SC book 374 posix_getuid() Syntax int posix_getuid(void); Description The posix_getuid() function returns the numeric real user ID (UID) of the current process. This function returns false, 0, if the function is not successful. posix_geteuid() Syntax int posix_geteuid(void); Description The posix_geteuid() function returns the numeric effective user ID (UID) of the current process. This function returns false, 0, if the function is not successful. posix_getgid() Syntax int posix_getgid(void); Description The posix_getgid() function returns the numeric real group ID (GID) of the current process. This function returns false, 0, if the function is not successful. posix_getegid() Syntax int posix_getegid(void); . violation. 16 The database is busy. POSIX PHP Developer’s Dictionary IT-SC book 373 This section describes the POSIX commands included in PHP4 . POSIX (Portable Operating System Interface). the specified domain . This function returns false, 0 , if it is unsuccessful. yp_first() PHP Developer’s Dictionary IT-SC book 371 Syntax string[] yp_first(string domain, string map);. invalid. 5 The specified key is not valid in the specified map. 6 Internal NIS error. PHP Developer’s Dictionary IT-SC book 372 7 Resource allocation error. 8 No more records