Hi,
you could check out fsockopen, if it returns a handle the host is online.
$fp = fsockopen($host, $port, &$errno, &$errstr, $timeout);
if (!$fp){
echo("failed");
}
else{
echo("succeeded");
}
fclose($fp);
If you need to bypass a proxy server then $host should be your proxy server and then you send a get request to the proxy using fputs.