I\'ve searched our SO questions but found solutions are based on calling ping command executed from using system PHP function.
ping
system
My web host
try this:
//checking if the site exists by fopen, instead of file_get_contents to speed it up $url = "URL"; //your url goes in this place instead of nabtron.com if (@fopen($url,"r")) { echo "".$url." is accessible"; }