I have a script that runs through a list of websites and checks the html code for links....however the script will run for a long time (up to an hour sometimes depending on the amount of sites I tell it to check) and then when it gets to the end I get this error:
Fatal error: Maximum execution time of 30 seconds exceeded.....on line 137
When I go to line 137 it is this code:![Maximum execution time of 30 seconds exceeded mysql Maximum execution time of 30 seconds exceeded mysql](/uploads/1/2/5/0/125063801/648895253.jpg)
![Maximum Execution Time Of 30 Seconds Exceeded Maximum Execution Time Of 30 Seconds Exceeded](/uploads/1/2/5/0/125063801/166289333.jpg)
$ch = curl_init( $website);
I am not sure what is causing this error. Is it a website is causing the connection to time out or what? If that is the case then how can I make it so if a maximum execution error occurs, the script keeps going on just moves onto the next website? I have pasted the function below.
Fatal error: Maximum execution time of 30 seconds exceeded.....on line 137
Iniset('maxexecutiontime', 300); //300 seconds = 5 minutes phpvalue maxexecutiontime 259200 Found something useful, please give 'Kudos' or 'Accept as Solution' for Token of Appreciation. Checkout Extensions: https://MageComp.com.
When I go to line 137 it is this code:
![Maximum execution time of 30 seconds exceeded mysql Maximum execution time of 30 seconds exceeded mysql](/uploads/1/2/5/0/125063801/648895253.jpg)
![Maximum Execution Time Of 30 Seconds Exceeded Maximum Execution Time Of 30 Seconds Exceeded](/uploads/1/2/5/0/125063801/166289333.jpg)
$ch = curl_init( $website);
I am not sure what is causing this error. Is it a website is causing the connection to time out or what? If that is the case then how can I make it so if a maximum execution error occurs, the script keeps going on just moves onto the next website? I have pasted the function below.