<?php
set_time_limit(0);
$adres="http://www.votkamp3.com/mp3-indir/4-yuz/ask-tadinda-10927.html";
#$proxy="127.0.0.1:8888";
function arasi($a,$b,$data)
{
$x = explode($a,$data);
$z = explode($b,$x[1]);
$oh = $z[0];
if($x && $z) { return $oh; } else { return false; }
}
$adres="http://www.votkamp3.com/mp3Yukleniyor.php?mp3ID=".current(explode(".",end(explode('-',$adres))));
$ch = curl_init();
curl_setopt($ch , CURLOPT_URL, $adres);
curl_setopt($ch , CURLOPT_TIMEOUT, 0);
curl_setopt($ch , CURLOPT_RETURNTRANSFER , TRUE);
curl_setopt($ch , CURLOPT_REFERER, "http://www.votkamp3.com");
curl_setopt($ch , CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.2) Gecko/20100115 Firefox/3.6');
curl_setopt($ch , CURLOPT_FOLLOWLOCATION, TRUE);
if($proxy) { curl_setopt($ch , CURLOPT_PROXY, $proxy); }
$exec = curl_exec($ch);
$mp3link="http://www.votkamp3.com/".arasi('<a href="','"',$exec);
curl_close($ch);
$ch = curl_init();
curl_setopt($ch , CURLOPT_URL, $mp3link);
curl_setopt($ch , CURLOPT_TIMEOUT, 0);
curl_setopt($ch , CURLOPT_HEADER, 0);
curl_setopt($ch , CURLOPT_RETURNTRANSFER , TRUE);
curl_setopt($ch , CURLOPT_REFERER, $adres);
curl_setopt($ch , CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.2) Gecko/20100115 Firefox/3.6');
curl_setopt($ch , CURLOPT_FOLLOWLOCATION, FALSE);
if($proxy) { curl_setopt($ch , CURLOPT_PROXY, $proxy); }
$exec = curl_exec($ch);
$mp3link=arasi('<a HREF="','">here',$exec);
echo $mp3link;
?> php curl hakkında ?
11
●1.287
- 19-11-2010, 00:50:32
- 19-11-2010, 20:47:13Üyeliği durduruldubak http://www.votkamp3.com/mp3-server/7e321af782.mp3 sayfaya curl ile bağlanınca yönlendirme headerı yollayacak header ları okumayı öğren