• 20-07-2010, 20:19:58
    #1
    <?php 
    $hotfile_user = "hotfileusername"; 
    $hotfile_pass = "hotfilesifre"; 
    
      
    $ch = curl_init(); 
    curl_setopt($ch , CURLOPT_TIMEOUT, 180); 
    curl_setopt($ch , CURLOPT_RETURNTRANSFER , TRUE); 
    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_COOKIEJAR, 'cookie.txt'); 
    curl_setopt($ch , CURLOPT_COOKIEFILE, 'cookie.txt'); 
    curl_setopt($ch , CURLOPT_FOLLOWLOCATION, TRUE); 
    curl_setopt($ch , CURLOPT_URL, 'http://hotfile.com/login.php'); 
    curl_setopt($ch , CURLOPT_POST , TRUE); 
    curl_setopt($ch , CURLOPT_POSTFIELDS, 'user='.$hotfile_user.'&pass='.$hotfile_pass); 
    echo $exec = curl_exec($ch); 
    
    ?>

    Yukardaki kod ile hotfile ye login olucam. Ama maalesef çalıştırdığımda kodu


    Notice: Undefined index: returnto in /hotfile/www/root/login.php on line 21
    
    Notice: Undefined index: returnto in /hotfile/www/root/login.php on line 22
    
    Notice: Undefined index: returnto in /hotfile/www/root/login.php on line 23
    böyle hata veriyor. acaba nedeni nedir ?
  • 20-07-2010, 20:34:23
    #2
    Üyeliği durduruldu
    Alıntı
    <?php
    $hotfile_user = "x";
    $hotfile_pass = "xxx";

    $ch = curl_init();
    curl_setopt($ch , CURLOPT_TIMEOUT, 180);
    curl_setopt($ch , CURLOPT_RETURNTRANSFER , TRUE);
    curl_setopt($ch , CURLOPT_HEADER , TRUE);
    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_COOKIEJAR, 'cookie.txt');
    curl_setopt($ch , CURLOPT_COOKIEFILE, 'cookie.txt');
    curl_setopt($ch , CURLOPT_URL, 'http://www.hotfile.com/login.php');
    curl_setopt($ch , CURLOPT_POST , TRUE);
    curl_setopt($ch , CURLOPT_POSTFIELDS, 'user='.$hotfile_user.'&pass='.$hotfile_pass);
    $exec = curl_exec($ch);
    curl_close($ch);


    $ch = curl_init();
    curl_setopt($ch , CURLOPT_URL, 'http://www.hotfile.com/');
    curl_setopt($ch , CURLOPT_RETURNTRANSFER , TRUE);
    curl_setopt($ch , CURLOPT_HEADER , TRUE);
    curl_setopt($ch , CURLOPT_COOKIEJAR, 'cookie.txt');
    curl_setopt($ch , CURLOPT_COOKIEFILE, 'cookie.txt');
    curl_setopt($ch , CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.2) Gecko/20100115 Firefox/3.6');
    $exec = curl_exec($ch);
    curl_close($ch);
    echo $exec;
    Şeklinde kullan birisiyle login edip cookie al sonra cookie ile hangi sayfaya istiyorsan gir
  • 20-07-2010, 20:39:08
    #3
    bende problemsiz çalıştı yine o kod acaba senin localde bir problemmi var

    flodby adlı üyeden alıntı: mesajı görüntüle
    Şeklinde kullan birisiyle login edip cookie al sonra cookie ile hangi sayfaya istiyorsan gir
    2 kez oturum acmana gerek yok ve 2. kez açtıgındada alttaki kodlar boşunma script yoruyor
    curl_setopt($ch , CURLOPT_URL, 'http://www.hotfile.com/');
     curl_setopt($ch , CURLOPT_RETURNTRANSFER , TRUE); 
     curl_setopt($ch , CURLOPT_HEADER , TRUE);
     curl_setopt($ch , CURLOPT_COOKIEJAR, 'cookie.txt');
    burası gereksiz kullanılmış yavaş çalışmasına sebeb olur
  • 20-07-2010, 20:39:48
    #4
    flodby adlı üyeden alıntı: mesajı görüntüle
    Şeklinde kullan birisiyle login edip cookie al sonra cookie ile hangi sayfaya istiyorsan gir
    eyw kardeşim, bide gittiğimiz sayfada postlamayı nasıl yaparıoz ? yani postluycak ana sayfaya gidicek oradan da postluycak, postladığı sayfayı göstericek.
  • 20-07-2010, 20:40:50
    #5
    inforesim adlı üyeden alıntı: mesajı görüntüle
    eyw kardeşim, bide gittiğimiz sayfada postlamayı nasıl yaparıoz ? yani postluycak ana sayfaya gidicek oradan da postluycak, postladığı sayfayı göstericek.

    neyi postlamak istiyorsun ? hotfileye remotemi yapcaksın
  • 20-07-2010, 20:41:53
    #6
    ByTriSLaSiS adlı üyeden alıntı: mesajı görüntüle
    neyi postlamak istiyorsun ? hotfileye remotemi yapcaksın
    evet curl da hiç bir bilgim olmadığı için mantığını bilmiyorum
  • 20-07-2010, 20:44:09
    #7
    inforesim adlı üyeden alıntı: mesajı görüntüle
    evet curl da hiç bir bilgim olmadığı için mantığını bilmiyorum


    <?php 
    $uploadlink ="LİNKİNİZ";
    curl_setopt($ch , CURLOPT_URL, 'http://hotfile.com/?lang=en');
    $exec = curl_exec($ch);
    
    preg_match("/http:\/\/(.*?)(.hotfile.com\/remoteupload.php\?)(.*?)\"/", $exec, $server);
    $server = $server[0];
    $server = eregi_replace("\"","", $server);
    
    curl_setopt($ch , CURLOPT_URL, $server);
    curl_setopt($ch , CURLOPT_POST , TRUE);
    curl_setopt($ch , CURLOPT_POSTFIELDS, 'uploads='. $uploadlink);
    $exec = curl_exec($ch);
     
    preg_match_all("/(http:\/\/(hotfile.com\/dl)(.*?)).html/", $exec, $uploadedlink);
    $uploadedlink = $uploadedlink[0];
    ?>
    editledim az önceki yeri yalnış vermişim şimdi dene

    tabi verdiğim kodu kendi kodlarına entegre et cookieyi kullan bu degerleri gönderirken