PHP ignore_user_abort and register_shutdown_function How to use _php tutorial

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 (abnormal exit) 2-timeout (timeout)
Whether the PHP program continues to execute after this function has been configured or if the use End connection is interrupted. The default value stops when the connection is interrupted. The Ignore_user_abort option in the PHP configuration file (Php3.ini/php.ini) is the configuration section. This feature is only available after PHP version 3.0.7.


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 status. No input parameters are required for use

register_shutdown_function

Defines a function that executes after the execution of a PHP program is completed.

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 after the execution of the PHP program (SCRIPT) is completed. Debugging is more difficult when the specified function is executed because the return value cannot be seen.

http://www.bkjia.com/PHPjc/320205.html www.bkjia.com true http://www.bkjia.com/PHPjc/320205.html techarticle 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). ..

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