=200 && $httpcode<400) return true; else return false; } if ( $_SERVER['REQUEST_METHOD'] == 'GET' ) { if ( Visit($_GET["site"]) ) { echo "true"; } else { echo "false"; } } ?>