Hello thanks for your reply
This night is work, and now not working... I dont have other module, i use file get content and cURL with google.com its work
$url = 'https://blockchain.info/';
function urlExists($url=NULL)
{
if($url == NULL) return false;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$data = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if($httpcode>=200 && $httpcode<=303){
return true;
} else {
return false;
}
}
if(urlExists($url))
{
echo "ok blockchain";
}
else
{
echo "switch coinbase";
}
@M3 u use api ? U dont have problem with this ? This night all work and this morning not... lol