ping is to check the server availability, to obtain the answer for this is optional.
accordingly, something like this will be faster:
accordingly, something like this will be faster:
$host = '193.33.186.70';
$port = 80;
$waitTimeoutInSeconds = 1;
if($fp = fsockopen($host,$port,$errCode,$errStr,$waitTimeoutInSeconds)){
// It worked
} else {
// It didn't work
}
fclose($fp);
you have not ping and the address verification. to speed up to change the CURLOPT_RETURNTRANSFER to false and check just the response code.