Yngvarr

Generation

generate functionWed, 08 Feb 2023

$_REQUEST get code status

<?php function get_status_code($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_NOBODY, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($ch); curl_close($ch); $status = explode(" ", $data); return $status[1]; } ?>

Questions about programming?Chat with your personal AI assistant