19.1. Apache

The functions in this section are available only when PHP is compiled as a module for the Apache Web server.

boolean apache_child_terminate()

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

Get Core PHP Programming, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.