Home  >  Article  >  Backend Development  >  ignore_user_abort php ignore_user_abort and register_shutdown_function usage

ignore_user_abort php ignore_user_abort and register_shutdown_function usage

WBOY
WBOYOriginal
2016-07-29 08:40:07931browse

Syntax: int ignore_user_abort(int [setting]);
Return value: integer
Function type: PHP system function
Content description
0 - NORMAL (normal) 1 - ABORTED (abnormal exit) 2 - TIMEOUT (timeout)
This function configuration Or get whether the PHP program continues to execute after the client connection is interrupted. The default value is to stop execution after disconnecting. The ignore_user_abort option in the PHP configuration file (php3.ini/php.ini) is the configuration location. This feature is only available after PHP version 3.0.7.
connection_status
Get the connection status.
Syntax: int connection_status(void);
Return value: integer
Function type: Network system
Content description
This function can return the connection status. No parameters are required when using
register_shutdown_function
Define the function to be executed after the PHP program is executed.
Syntax: int register_shutdown_function(string func);
Return value: integer
Function type: PHP system function
Content description
This function defines to the system the function to be executed after the PHP program (Script) is executed. When the specified function is executed, debugging is difficult because the return value cannot be seen.

The above introduces the usage of ignore_user_abort php ignore_user_abort and register_shutdown_function, including the contents of ignore_user_abort. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn