Yngvarr

Generation

generate functionWed, 08 Feb 2023

get request code status

function get_status_code($url){ $str = file_get_contents($url); if(strlen($str)>0){ preg_match('/http_code:(\d+)/', $str, $matches); return $matches[1]; } return false; }

Questions about programming?Chat with your personal AI assistant