Yngvarr

Generation

generate functionWed, 08 Feb 2023

$_SERVER get code status

function get_status_code($url) { $headers = get_headers($url); return substr($headers[0], 9, 3); } get_status_code('http://google.com')

Questions about programming?Chat with your personal AI assistant