Source Code:
(back to article)
$url = "http://example.com"; $context = stream_context_create(array('http' => array('ignore_errors' => true))); $data = file_get_contents($url, false, $context); $response_code = substr($http_response_header[0], 9, 3);
Result:
Report an issue