12.04.2013, 00:10
Michaled: try something like this in the php side:
Worked?
Код:
<?php
$videoid = $_GET['videoid'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "youtump3.com/?v=".$videoid);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$infolink = curl_exec($ch);
curl_close($ch);
$s = strpos($infolink, "http://youtump3.com/pop/popads.php?url=");
$e = strpos($infolink, "\">", $s + 39);
$r = substr($infolink, $s + 39, $e - $s - 39);
header("Content-Type: audio/mpeg");
header("Content-Disposition: attachment; filename=".$r);
readfile($r);
?>


