PHP code snippet – How to check if a url is up ?
<?php $url = 'http://google.com'; if(@file_get_contents($url)){ echo "Website is up"; } else { echo "Website is down"; } ?>
Curly hair, very fair, please share 🙂
Related
$404 to php, 404 in php, 404 page control in php, 404 page in php, 404 page in php website, 404 page php, 404 page php code, 404 php, 404 php file, 404 php page, 404.php page, ; in url give error php, check 404 path in php, check for 404 errors php, check if 404 php, check if error 404 php, check if page is 404 in functions php, check if page is 404 php, check if url is 404 php, check page request php, check url 404 php, code for header 404 error page in php, code php 404, detect 404 error php, detect 404 web page php$, detect php 404 error with if, display 404 error php, display page as 404 php, how set up 404 page in php, how to check if a url is down php, how to check if links return 404, how to check if response is 200 php, how to check if website is 404 om php, how to check website 404 status in php, how to do a 404 page with php, how to get response 404 error page in php, how to integrate 404 page to all pages in php, how to integrate 404 page to other pages in php, how to load 404 in php, how to make 404 error page in php, how to make 404 page in php, how to return 404 in php, how to set 404 page in php, how to set 404 page in php on server, how to set 404 page in php webserver, how to show 404 page in php, http 404 php code, if 404 page php, if error 404 php, if its 404 error php, include get page and 404 in php, is 404 php, laravel check if url is 404, laravel check url return 200, page 404 php, page-404.php, php 404, php 404 code, php 404 error page, php 404 errors, php 404 link checker, PHP 404 page, php 404 page code, php 404 response, php 404 status, php apache 404 how to, php check 404, php check 404 url, php check if 404 error, php check if http status code is valid, php check if link returns 404, php check if url for 404, php check status code range, php check url errors 404, php check url status, php check url status code, php code 404, php curl clone page 404, php curl links with 404, php curl test url, php detect if its a 404 redirect, Php dot in url giving 404, php echo check response, php erorr 404, php get response code from url, php how to check if page is 404, php how to test if URL response is 200 or RECEIVED / OK, php how to test if URL response is 200 or RECEIVED / OK curl, php if file returns 404, php if url not found then handling error, php load 404 error, php make a 404, php make a 404 page, php response 404, php response code 404, php return 404, php return 404 error, php return 404 page, php return 404 status code, php return http 404, php return status 404, php set response code 404, php set response to 404, php show 404 status, php show default 404 page, php status 4040, php test link if 404, quickest way to check for 404 in php, see if page contains 404 php, show 404 error in php, way to locate error 404 php