Phpset_time_limit (0) is a function used to set the execution time of a program.

Source: Internet
Author: User
In a simple example, 1500 statements are displayed on the webpage. If no expiration time is set, the execution of the program ends at 791. if set_time_limit (0) is set ); the program will not end until 1. Set_time_limit (0 );

The number in the brackets indicates the execution time. if the number is zero, the execution is permanently performed until the program ends. if the number is greater than zero, the program ends regardless of whether the program is executed successfully or not.

In a simple example, 1500 statements are displayed on the webpage. If no expiration time is set, the execution of the program ends at 791. if set_time_limit (0) is set ); the program will not end until 1.

 0) {$ SQL = "insert into php (php) VALUES ('$ I')"; if ($ conn-> execute ($ SQL) === flase) {// echo "data insertion error ". $ conn-> errormsg ();} else {$ phpid = $ conn-> Insert_ID (); echo $ I. "saved to database, no :". $ phpid ;}$ I --; echo "" ;}?>

For more information about setting the execution time of a php set_time_limit (0) function, see PHP!

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.