/ Published in: PHP
Expand |
Embed | Plain Text
$url = 'http://google.com'; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $header = "Location: "; ", $pos)-$pos);
You need to login to post a comment.
