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
A-312 69370 points

                                    ErrorDocument 404 /404page.html

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how to show 404 page in php php response 404 display 404 error php 404 php 404 page php code how to integrate 404 page to all pages in php how to integrate 404 page to other pages in php php show 404 status php apache 404 how to 404 page php how set up 404 page in php how to make 404 error page in php http 404 php code php 404 error page if 404 page php php return http 404 code for header 404 error page in php php code 404 php check if 404 error how to load 404 in php how to set 404 page in php php 404 link checker php erorr 404 how to get response 404 error page in php php load 404 error how to check if website is 404 om php php 404 code php return 404 status code php check url errors 404 check if 404 php code php 404 PHP 404 page php make a 404 page php 404 response 404 in php php return 404 php make a 404 php 404 status php 404 how to make 404 page in php 404.php page php 404 errors display page as 404 php include get page and 404 in php how to set 404 page in php on server php return 404 page php response code 404 page-404.php php show default 404 page how to set 404 page in php webserver quickest way to check for 404 in php 404 php page php return 404 error php return status 404 laravel check url return 200 way to locate error 404 php php if file returns 404 php if url not found then handling error php curl links with 404 how to check if response is 200 php check if url is 404 php php how to test if URL response is 200 or RECEIVED / OK curl php how to test if URL response is 200 or RECEIVED / OK check 404 path in php ; in url give error php check url 404 php if error 404 php detect 404 error php how to check if links return 404 php curl test url php check 404 php test link if 404 php echo check response laravel check if url is 404 check page request php php check if http status code is valid php curl clone page 404 php check if link returns 404 php detect if its a 404 redirect is 404 php Php dot in url giving 404 php check url status code php check url status php get response code from url see if page contains 404 php check for 404 errors php check if error 404 php php check status code range how to check website 404 status in php
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source