This question already has answers here:
Fatal error: Maximum execution time of 30 seconds exceeded
(17 answers)
Closed 8 years ago.
I'm new to the php.
When I'm trying to connect to crea(Canada realestate) database I encountered a error
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1465
again I executed the code then it is showing
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1408
Then I changed the following line in php.ini and restarted my server
max_execution_time=300
This time it again sown different line number
Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1489
How to overcome this problem?
Here the complete code is http://crea.ca/data-distribution-facility-documentation
It seems your script is taking too much time to execute and it is being timedout.
Edit your php.ini and change the value of max_execution_time to 1000 and restart your web server.
You can also try to increase your memory_limit.
Related
I've a codeigniter/php application running in WAMP and connected to sql server database using. When i tried to retrieve a long report from the system i'm getting the following error:
Fatal error: Maximum execution time of 300 seconds exceeded in C:\wamp\www\tas\system\database\drivers\sqlsrv\sqlsrv_driver.php on line 152
I've already increased max_execution_time = 99999 in php.ini and also changet the value in C:\wamp\apps\phpmyadmin4.0.4\libraries\config.default.php the $cfg['ExecTimeLimit'] = 0; but still not working. What could be the reason, is there any thing I should change in sqlsrv_driver.php may be?
Increase the timeout, preferably for that query only.
Today I tried to access phpMyAdmin but I couldn't because of the this error message:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\phpMyAdmin\vendor\samyoul\u2f-php-server\src\U2FServer.php on line 10
So...I tried to modify max_execution_time in php.ini file but it didn't work
Also, in line 10 from U2FServer.php file is the class name:
Why is this happening? Can you help me, please?
Thank you
This question already has answers here:
Fatal error: Maximum execution time of 30 seconds exceeded
(17 answers)
Closed 5 years ago.
Why this message appears frequently ? Does it occurs when code is error or server is overloaded ? How can we decrease load in PHP server? How to solve this problem? please help me.
See PHP's set_time_limit(100); method:
Set the number of seconds a script is allowed to run. If this is
reached, the script returns a fatal error. The default limit is 30
seconds or, if it exists, the max_execution_time value defined in the
php.ini.
I got this error in EasyPhp when I try to access to EasyPhp MyAdmin to see my database.
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\modules\phpmyadmin414x150807154856\libraries\dbi\DBIMysqli.class.php on line 285
Please Help !
Add the following at the top of your php script
set_time_limit(0);
ignore_user_abort(1);
set_time_limit - Limits the maximum execution time in seconds (0 is unlimited)
ignore_user_abort - Set whether a client disconnect should abort script execution
This question already has answers here:
Fatal error: Maximum execution time of 300 seconds exceeded
(22 answers)
Closed 8 years ago.
I have PHP 5.3.29 installed and trying to read an excel file with php-excel-reader-2.21, but it gives error as below
Fatal error: Maximum execution time of 300 seconds exceeded in php-excel-reader-2.21\excel_reader2.php on line 143
Also tried to use phpExcelReader, it gives error as below.
Fatal error: Maximum execution time of 300 seconds exceeded in C:\Apache2.2\htdocs\phpExcelReader\Spreadsheet\Excel\Reader\oleread.php on line 96
Working on maximum time limit may not be helpful here as I have only 2 rows to read in excel file and for that the value "300" I have set is already high. anyone has idea on why the libraries failing to read excel? or any alternative suggestions?
In your php.ini file there is a directive max_execution_time, change it to what you want.
OR
in your PHP script, write following line:
ini_set('MAX_EXECUTION_TIME', -1);