问题
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
回答1:
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.
来源:https://stackoverflow.com/questions/23556519/fatal-error-maximum-execution-time-of-30-seconds-exceeded