In PHP i am using a proxy with curl with the following :
CURLOPT_HTTPPROXYTUNNEL, 1,
CURLOPT_PROXY, ''.$current_proxy.'',
and i have a DB with backup proxy ip's in it, but i want to know how i can detect if the proxy has gone down so it can switch the variable $current_proxy
.
What do you suggest for detecting if a server is down? Thanks.