How to stop a curl while requesting or stop the running php script?
- by Chris
I using url to request remote urls that sometimes may very slow or just down.
In this case, my php scripts still waiting for the response, it makes apache has to many requests stay in memory and then overload.
I need a way to stop curl requesting or stop running php script when specified time passed.
I'd tried declare(), it makes no sense for curl.
Can someone know how to solve it?
BTW: what is the effect of CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT? They don't work like what I think.