<?
$adres="http://www.redtube.com/".$_GET['id'];
$gir=baglan($adres);
preg_match("|<source src='(.*)' type='video/mp4'>|",$gir,$ver);
if(!$ver)exit;
header("location : ".urldecode($ver[1]));
function baglan($url){
$oturum = curl_init();
curl_setopt($oturum, CURLOPT_URL, $url);
curl_setopt($oturum, CURLOPT_HTTPHEADER,array('User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0',
'Host: www.redtube.com',
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3',
'Connection: keep-alive'));
$h4 = $_SERVER['HTTP_USER_AGENT'];
curl_setopt($oturum, CURLOPT_USERAGENT, $h4);
curl_setopt($oturum, CURLOPT_HEADER, 0);
curl_setopt($oturum, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($oturum, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($oturum, CURLOPT_TIMEOUT, 30);
$source=curl_exec($oturum);
curl_close($oturum);
return $source;
}
?> Php Video grabber ?? (acil yardım)
0
●440
- 29-01-2014, 20:55:20Merhaba arkadaşlar sanırım grabber deniliyordu tam hatırlamıyorum ama yanlış olduysa affola, redtube sitesinden bot ile id çekip alttaki php dosyası ile oynatılmasını sağlıyordum ama şimdi olmuyor bilen yapabilen arkadaşlar yardımcı olabilirmi ?