
11-04-2011, 22:43:29
|
| |
1 -
hocam benim yazıp forumda dağıttığım dosyayı kullanıyorsunuz bu dosya 3-5k hitten sonra kullanılmaz ne kadar güçlü iyi makinan olursa olsun.
aha bu PHP- Kodu: <?php
function get_data($url)
{
$ch = curl_init();
$timeout = 10;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5" );
curl_setopt($ch,CURLOPT_HEADER,1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_REFERER,"http://www.youtube.com/");
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
ini_set("max_execution_time","");
$url = $_GET['v'];
$v = $url;
$file=get_data("http://www.youtube.com/watch?v=".$v);
$adres1 = explode('fmt_url_map=',$file);
$adres1 = explode('&',$adres1[1]);
$adres1 = urldecode($adres1[0]);
$flvadres = end(explode("|", $adres1));
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $flvadres);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_NOBODY, 0);
curl_setopt($ch, CURLOPT_REFERER, "http://www.youtube.com/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_WRITEFUNCTION,"progress_function");
$data = curl_exec($ch);
$i = 0;
function progress_function($ch,$str) {
global $i,$_GET;
if($i == 0)
{
$info = curl_getinfo($ch);
header('Content-type: video/x-flv');
header("Content-Disposition: attachment; filename=\"" . $_GET['v'] . ".flv\"");
header("Content-Length: " . $info['download_content_length']);
$i = 1;
}
echo $str;
return strlen($str);
}
curl_close($ch);
?>
2 - gayet güzel izleniyor, herhangi bir koruma yok, teknik olarak konulmasıda imkansız zaten
3 - yinede ben kendime ve makinama güveniyorum diyorsan hemen hesap no yolla alayım ama sonra olmadı kardeş demek yok.
Konu victories tarafından (11-04-2011 Saat 23:28:27 ) değiştirilmiştir..
|