PHP Curl - If no response within a certain time, proceed -
this question has answer here:
- setting curl's timeout in php 7 answers
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
Post a Comment