Tried several more methods they all for me.. don't work.
For example the one below says it's offline
Code:<?php $server_host = "http://www.google.com"; $server_port = 80; $conn = @fsockopen($server_host, $server_port, $errno, $err_string, 10); if($conn === false) { // server is offline echo 'Server appears to be offline'; } else { // server is online echo 'Server Online'; } ?>



Reply With Quote





Bookmarks