August 2003
Intermediate to advanced
1104 pages
19h 27m
English
The functions in this section are available only when PHP is compiled as a module for the Apache Web server.
The apache_child_terminate function instructs Apache to terminate the child process executing the PHP script when the request finishes. This applies only when Apache runs in multiprocess mode, which is normal behavior for Apache 1.3.x and optional for Apache 2.x. Ordinarily, Apache terminates child processes after a set number of requests, but you may wish to terminate early when your PHP script uses a large amount of memory. Processes allocate heap space as necessary but do not release it until shutdown. Terminating the processes early returns the memory to the pool immediately. This may improve ...
Read now
Unlock full access