PHP Curl - If no response within a certain time, proceed -


this question has answer here:

i have network system checks other sites , displays results. of sites can slow respond.

i'd curl wait small time before saying "forget site!" , moving onto next.

how make curl abort attempt after "idle" time?

the reason did not post code because have no idea start on feature! be kind. :d

you have 2 separate options timeout:

curlopt_connecttimeout time (in seconds) spent connecting (set 0 infinite wait time)  curlopt_timeout time (in seconds) spent while curl executing (set 0 inifinite wait time) 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -