php.ini Directives Related to the Connection-Handling Functions
The following configuration directives can be used to control
the behavior of the connection-handling functions.
Directive Name
|
Value Type
|
Description
|
---|---|---|
ignore_user_abort
|
bool (on/off)
|
If this setting is enabled, PHP continues running the script
even after the user aborts the script or disconnects.
|
max_execution_time
|
integer
|
The maximum amount of time that a script can run before
execution is halted.
|
connection_timeout
connection_timeout() is broken and has been removed
from PHP 4 (as of version 4.0.5). Do not use this function—use
connection_status() instead.
ignore_user_abort() allows developers to control
whether a remote client can abort the running of a script. If the user_abort_setting argument is set to
FALSE, client aborts (and some network errors) will cause the script to
stop running. If user_abort_setting is
set to TRUE, the script continues running until an error occurs, the
script finishes execution, or the script times out.
To check whether script execution has
been aborted:
connection_aborted()
To set
ignore_user_abort globally:
ignore_user_abort ini directive