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";
}
?>
0
0
ErrorDocument 404 /404page.html
Thank you!
0
0
Are there any code examples left?
New code examples in category PHP