I am running a rather long script that fetches the contents of a specified domain and parses the html before running a series of tests on said html. Anyway the script times out after a while. I tried putting this at the top of my page but still no luck:
set_time_limit(0);
Here is the error in question:
cURL error number:28
cURL error:Operation timed out after 10000 milliseconds with 316183 out of 6476018 bytes received
You need to set the amount of time curl gets to complete its operations with curl_setopt.
The CURLOPT_TIMEOUT setting to be specific.
curl_setopt($ch, CURLOPT_TIMEOUT, 400); // the timeout in seconds
http://www.php.net/manual/en/function.curl-setopt.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With