Yngvarr

Generation

generate functionWed, 08 Feb 2023

$_SERVER get code status

function get_http_response_code($theURL) { $headers = get_headers($theURL); return substr($headers[0], 9, 3); } get_http_response_code('http://www.example.com');

Questions about programming?Chat with your personal AI assistant