August 2003
Intermediate to advanced
1104 pages
19h 27m
English
The process control functions wrap UNIX functions for signal handling. They are appropriate for PHP CLI executable running on a UNIX operating system only. Signals are beyond the scope of this text but are a common topic in any relatively in-depth text on UNIX programming.
The pcntl_alarm function sets up a SIGALRM signal after the given number of seconds. The operating system discards any previous alarm and returns the number of seconds left on it.
The pcntl_exec function (Listing 9.99) executes a program. Set the optional arguments array with any number of arguments to pass on the command line. Set the environment argument ...
Read now
Unlock full access