php how to test if URL response is 200 or RECEIVED / OK curl code example
Example: 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";
}
?>