CodeIgniter The script runs a 300s timeout

Source: Internet
Author: User

Look directly at the code,

file:system/core/codeigniter.php

/*
102 *------------------------------------------------------
103 * Set A liberal script execution time limit
104 *------------------------------------------------------
105 */
106 if (function_exists ("set_time_limit") = = TRUE and @ini_get ("safe_mode") = = 0)
107 {
108 echo "1111111\n";
109 @set_time_limit (300);
110}


This limits the script execution time. Change php.ini and so on will not work.

Error similar to:

PHP Fatal error:maximum execution time of seconds exceeded in/data/webroot/app/system/database/db_driver.php on Lin E 1409


For some of the offline scripts, this is obviously unreasonable. Individuals think that this restriction should be eliminated, so that the user's own control is better.

Fortunately, using the Set_time_limit function can also override this configuration.

It's good to call Set_time_limit in your own script.


See below this later only found, praise this foreigner:

Http://blog.self.li/post/54633314166/codeigniter-timing-out-after-300s-heres-a-solution

Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

CodeIgniter The script runs a 300s 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.