PHP
PHP Get HTTP Request Headers - get_headers()
I was doing some tests to make a simple web crawler in PHP and I want to share with you get_headers() function. <?php function get_http_response_code($headers) { return intval(substr($headers[0], 9, 3)); } $url = 'http://tig.pt'; $headers = get_headers($url, 1); if