Web dev Simple URL checker 11 years agoAdd Comment1 min read $url = "https://www.nicolapietroluongo.com"; $handle = curl_init($url); curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE); curl_exec($handle); $httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE); if($httpCode == 404) {echo "ERROR 404 found";}