How to use PHP ignore_user_abort and register_shutdown_function _php skills

Source: Internet
Author: User
Syntax: int ignore_user_abort(int [setting]);

return value: Integer

Function type: PHP system function

Content Description
0-normal (normal) 1-aborted (Exception exit) 2-timeout (timeout)
The PHP program continues to execute after the function configures or obtains the use-side connection interruption. The default value is to stop execution when the connection is interrupted. The Ignore_user_abort option in the PHP configuration file (Php3.ini/php.ini) is the configuration office. This feature is not available until after the PHP 3.0.7 version.


Connection_status

Gets the connection status.

Syntax: int connection_status (void);

return value: Integer

Function Type: Network system

Content Description

This function returns the connection state. Not required to enter parameters when used

Register_shutdown_function

A function that defines the execution of a PHP program after execution completes.

Syntax: int register_shutdown_function (string func);

return value: Integer

Function type: PHP system function

Content Description

This function defines the function to be executed by the system after the execution of the PHP program (SCRIPT) is completed. When the specified function is executed, debugging is more difficult because the return value cannot be seen.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.