Answers for "how to check website 404 status in php"

PHP
2

how to check website 404 status in php

<?php
$url = 'http://google.com';

if(@file_get_contents($url)){
	
	echo "Website is up";
	
} else {
	
	echo "Website is down";
	
}

?>
Posted by: Guest on May-31-2020
0

how to create 404 page in php website

ErrorDocument 404 /404page.html
Posted by: Guest on November-06-2020

Browse Popular Code Answers by Language