Reputation: 1103
I have set the following:
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
before calling curl_exec($ch)
However, every now and then, I get an error: GOT AN ERROR<br/>Operation timed out after 10002 milliseconds with 0 bytes received<br/>-------<br/>
Seems curl is not respecting the timeout settings. I tried setting the _MS versions also, but to no avail. Please help!
Upvotes: 0
Views: 1210
Reputation: 2052
.htAccess are able to override a subset of the server's global configuration for the directory that they are in, and all sub-directories.
find the property max_execution_time
in the .htaccess of your website. this time is in seconds as I remember.
EDIT: Also check the PHP.ini file
<IfModule mod_php5.c>
php_value post_max_size 5M
php_value upload_max_filesize 5M
php_value memory_limit 300M
php_value max_execution_time 259200
php_value max_input_time 259200
php_value session.gc_maxlifetime 1200
</IfModule>
Increase max execution time for php
Upvotes: 1