• 29-12-2009, 22:20:44
    #1
    merhaba arkadaslar

    her yerde rapidshare link kontrol scripti var ama curl fonksiyonu ile hotfile link kontrol sistemi yok.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
     
    <body>
    <center>
    <form method="post" action="">
    Rapidshare Links:<br />
    <textarea name="url" rows="10" cols="50"></textarea><br /><br /><input type="submit" name="submit" value="Check Links"> | <input type="reset" value="Clear">
    </form>
     
    <?php
    if(isset($_REQUEST['submit'])){
    echo "<br />-------------------------------------------------<br />";
    $url = @$_POST['url'];
    if ($url == ""){
    echo "Invalid URL(s)";
    } else {
    $url = explode(" ", $url);
    $url = implode("\n", $url);
    $url = explode("\n", $url);
    $url = array_unique($url);
     
    foreach ($url as $urls){
    $rsurls = @file_get_contents($urls);
    if (preg_match("/FILE DOWNLOAD/", $rsurls)){
    $url = trim($url); #before $url = explode(" ", $url);
    $pos1 = strpos($rsurls,">| ");
    $pos2 = strpos($rsurls," KB");
    echo substr($rsurls, $pos1+3, $pos2-$pos1)." "; 
    echo '<a href="'.$urls.'"><font color="green">'.$urls.'</font></a> - Valid<br />';
    } else {
    echo '<a href="'.$urls.'"><font color="red">'.$urls.'</font></a> - Dead<br />';
    }
    }
    echo "<br /><font size=\"2\">".sizeof($url)." Links Checked</font>";
    }
    }
    ?>
    <br /><br />
    </center>
    </body>
    </html>
    bunu nasıl http://hotfile.com/checkfiles.html icin scripte donusturulebilir basitce?
  • 30-12-2009, 00:23:20
    #2
    Aşağıda sana yardımcı olacak ufak bir örnek yazdım. Uzun zamandır girmiyordum can sıkıntısı işte gerisini artık sen getirirsin umarım.Benden bu kadar. Kodu denemedim
    <?php 
    error_reporting(E_ALL);
    set_time_limit(600);
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, "http://hotfile.com/checkfiles.html");  
    curl_setopt($curl, CURLOPT_HEADER, 1);
    curl_setopt($curl, CURLOPT_COOKIEFILE, "i.txt");
    curl_setopt($curl, CURLOPT_COOKIEJAR, "i.txt");
    curl_setopt($curl, CURLOPT_USERAGENT, 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14');
    curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 0);
    curl_setopt($curl, CURLOPT_REFERER, 'http://www.google.com.tr/search?hl=tr&q=r10.net&btnG=Ara&meta=lr%3Dlang_tr');
    curl_setopt($curl, CURLOPT_POST, 1);
    $bilgi = "files=http%3A%2F%2Fhotfile.com%2Fdl%2F182987%2Fc2d67b8%2FPCD.DollDomination.2009.rar.html&but=+Check+Urls+";
    curl_setopt($curl, CURLOPT_POSTFIELDS, $bilgi);
    $veri = curl_exec($curl);
    
    //daha sonra preg_match ile gelen verileri alıcaksın
    ?>
  • 30-12-2009, 02:56:26
    #3
    cURL'siz, yukarıda verdiğiniz scriptin düzenlenmiş şekli:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head><title></title></head>
    <body>
    <center>
    <form method="post" action="">
    Rapidshare Links:<br />
    <textarea name="url" rows="10" cols="50"></textarea><br /><br /><input type="submit" name="submit" value="Check Links" /> | <input type="reset" value="Clear" />
    </form>
     
    <?php
    if(isset($_REQUEST['submit'])){
    echo "<br />-------------------------------------------------<br />";
    $url = @$_POST['url'];
    if ($url == ""){
    echo "Invalid URL(s)";
    } else {
    $url = explode(" ", $url);
    $url = implode("\n", $url);
    $url = explode("\n", $url);
    $url = array_unique($url);
     
    foreach ($url as $urls){
    $rsurls = @file_get_contents($urls);
    if (preg_match("/Downloading/", $rsurls)){
    $url = trim($url); #before $url = explode(" ", $url);
    $pos1 = strpos($rsurls,">| ");
    $pos2 = strpos($rsurls," KB");
    echo substr($rsurls, $pos1+3, $pos2-$pos1)." "; 
    echo '<a href="'.$urls.'"><font color="green">'.$urls.'</font></a> - Valid<br />';
    } else {
    echo '<a href="'.$urls.'"><font color="red">'.$urls.'</font></a> - Dead<br />';
    }
    }
    echo "<br /><font size=\"2\">".sizeof($url)." Links Checked</font>";
    }
    }
    ?>
    <br /><br />
    </center>
    </body>
    </html>
  • 30-12-2009, 19:00:32
    #4
    tesekkurler ilk verdigim ornek rs.com dan ancak ben hotfile.com dan cekecek sekilde degistirmek istiyorum

    Alkadraz cok tesekkur ederim
  • 30-12-2009, 19:01:07
    #5
    Misafir
    teşekkürler bilgi için
  • 31-12-2009, 04:28:20
    #6
    Scriptte bir yeri yanlıs yere yazmısım KeLKun'a tesekkurler ancak halen valid,dead olarak gostermesine ragmen boyutu cekemiyorum

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head><title></title></head>
    <body>
    <center>
    <form method="post" action="">
    Rapidshare Links:<br />
    <textarea name="url" rows="10" cols="50"></textarea><br /><br /><input type="submit" name="submit" value="Check Links" /> | <input type="reset" value="Clear" />
    </form>
     
    <?php
    if(isset($_REQUEST['submit'])){
    echo "<br />-------------------------------------------------<br />";
    $url = @$_POST['url'];
    if ($url == ""){
    echo "Invalid URL(s)";
    } else {
    $url = trim($url);
    $url = explode(" ", $url);
    $url = implode("\n", $url);
    $url = explode("\n", $url);
    $url = array_unique($url);
     
    foreach ($url as $urls){
    $rsurls = @file_get_contents($urls);
    if (preg_match("/Downloading/", $rsurls)){
    $pos1 = strpos($rsurls,">| ");
    $pos2 = strpos($rsurls," KB");
    echo substr($rsurls, $pos1+3, $pos2-$pos1)." "; 
    echo '<a href="'.$urls.'"><font color="green">'.$urls.'</font></a> - Valid<br />';
    } else {
    echo '<a href="'.$urls.'"><font color="red">'.$urls.'</font></a> - Dead<br />';
    }
    }
    echo "<br /><font size=\"2\">".sizeof($url)." Links Checked</font>";
    }
    }
    ?>
    <br /><br />
    </center>
    </body>
    </html>
  • 31-12-2009, 06:02:26
    #7
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head><title></title></head>
    <body>
    <center>
    <form method="post" action="">
    Rapidshare Links:<br />
    <textarea name="url" rows="10" cols="50"></textarea><br /><br /><input type="submit" name="submit" value="Check Links" /> | <input type="reset" value="Clear" />
    </form>
     
    <?php
    if(isset($_REQUEST['submit'])){
    echo "<br />-------------------------------------------------<br />";
    $url = @$_POST['url'];
    if ($url == ""){
    echo "Invalid URL(s)";
    } else {
    $url = explode(" ", $url);
    $url = implode("\n", $url);
    $url = explode("\n", $url);
    $url = array_unique($url);
     
    foreach ($url as $urls){
    $rsurls = @file_get_contents($urls);
    preg_match_all('~<span class="size">\| (.+?)</span>~', $rsurls, $kb);
    if (preg_match("/Downloading/", $rsurls)){
    #$urls = trim($urls); #$urls = explode(" ", $urls);
    $pos1 = strpos($rsurls," | ");
    $pos2 = strpos($rsurls," KB");
    echo substr($rsurls, $pos1+3, $pos2-$pos1)." "; 
    echo '<a href="'.$urls.'"><font color="green">'.$urls.'</font></a> <font color="green">('.$kb[1][0].')</font> - Valid<br />';
    } else {
    echo '<a href="'.$urls.'"><font color="red">'.$urls.'</font></a> - Dead<br />';
    }
    }
    echo "<br /><font size=\"2\">".sizeof($url)." Links Checked</font>";
    }
    }
    ?>
    <br /><br />
    </center>
    </body>
    </html>