Fatal error: Maximum execution time of 30 seconds exceeded in codeigniter

微笑、不失礼 提交于 2020-01-14 05:14:30

问题


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
}


来源:https://stackoverflow.com/questions/32088566/fatal-error-maximum-execution-time-of-30-seconds-exceeded-in-codeigniter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!