Fatal error: Maximum execution time of 30 seconds

2019-06-13 16:12发布

问题:

Fatal error: Maximum execution time of 30 seconds exceeded in D:\wamp\www\moneymanager18_8_15\system\database\drivers\mysqli\mysqli_driver.php on line 221

This happens during uploading.file is getting uploaded,but the same time this error shows.

回答1:

Write this above your controller.

ini_set('max_execution_time', 0); 
ini_set('memory_limit','2048M');


回答2:

There is a something that CodeIgniter not include this in their documentation. Go to the page in system/core/CodeIgniter.php and search this and change it according to your requirement

if (function_exists("set_time_limit") == TRUE AND @ini_get("safe_mode") == 0)
{
    @set_time_limit(300);// change according to your requirement
}