PHP ignore_user_abort and register_shutdown_function usage

Source: Internet
Author: User

Syntax: int Ignore_user_abort(INT [setting]);

Return Value: integer

Function types: PhP system functions

Description
0-normal (normal) 1-aborted (abnormal exit) 2-Timeout (timeout)
PHPProgramWhether to continue execution. The default value is to stop running after the connection is interrupted. In the PHP configuration file (php3.ini/PHP. INI), The ignore_user_abort option is the configuration. This function is available only after PHP 3.0.7.

Connection_status

Obtain the connection status.

Syntax: int connection_status (void );

Return Value: integer

Function Type: Network System

Description

This function returns the connection status. No parameter is required for use.

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 types: PhP system functions

Description

This function defines to the system the function to be executed after the PHP Program (SCRIPT) is executed. When executing the specified function, it is difficult to debug because the returned 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.