/ Published in: PHP
Expand |
Embed | Plain Text
function get_link_status($link) { $ch = curl_init($link); curl_setopt($ch, CURLOPT_NOBODY, 1); $c = curl_exec($ch); return (int)curl_getinfo($ch, CURLINFO_HTTP_CODE); }
You need to login to post a comment.
