Home >Backend Development >PHP Tutorial >How to use php ignore_user_abort and register_shutdown_function_PHP tutorial

How to use php ignore_user_abort and register_shutdown_function_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:46:001192browse

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 configures or obtains whether the PHP program will continue to execute after the user 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 returns connection status. There is no need to enter parameters 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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/320205.htmlTechArticleSyntax: 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)...
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