I want an if statment thats checks for specific error from php script the error is this
Warning: file_get_contents(http://www.google.com): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\google\index.php on line 196
my code
if (file_get_contents('http://www.google.com') === false {
echo 'faild';
}
I want to skip only 404 error
ps: I'm not using my code on google website but I cant write the real url
(sorry for my bad english)