Page is a not externally linkable
janton - 8:56 am on Jun 25, 2008 (gmt 0)
But it did'n work... :( <?php curl_setopt($ch, CURLOPT_HEADER, true); $response = curl_exec($ch); $header = "Location: "; This gave me a blaco screen. So this is my link: http://example.com/file/get/Movtrailer-trailer_deadspace514.mov and if you past it in your browser you get: [edited by: coopster at 12:03 pm (utc) on June 25, 2008]
Thx thx Little_G
Here is what I did and also my link, so you can try it maby?
$ch = curl_init("http://example.com/file/get/Movtrailer-trailer_deadspace514.mov");
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_close($ch);
$pos = strpos($response, $header);
$pos += strlen($header);
$redirect_url = substr($response, $pos, strpos($response, "\r\n", $pos)-$pos);
echo $redirect_url;
?>
[s9.video.example.com...]
[edit reason] please use example.com [/edit]