• 12-12-2007, 15:01:29
    #10
    Üyeliği durduruldu
    strhost adlı üyeden alıntı: mesajı görüntüle
    <?php
    $url = 'http://www.livescore.com/default.dll';
    $cookie_file_name = "/tmp/cookie.txt";
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_COOKIEJAR, $cookie_file_name);
    curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($curl, CURLOPT_URL, $url);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_HEADER, true);
    $str = curl_exec($curl);
    unset($curl);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_name);
    curl_setopt($ch, CURLOPT_URL, $url);
    $buf2 = curl_exec($ch);
    curl_close($ch);
    $pos1 = '<tr bgcolor="#333333"><td class="title" colspan="4" height="18">&nbsp;<b>';
    $pos2 = '<tr bgcolor="#111111"><td colspan="4" height="4"></td></tr></table>';
    $buf3 = substr($buf2, strpos($buf2, "$pos1"));
    $buf3 = substr($buf3, 0, strpos($buf3, "$pos2"));
    echo "$buf3";
    ?>
    demo http://blogcum.li/1/veri.php dün çekmeyen site büğün çekiyor anlamıyorum
    safe mod ile alakalı hemen yemiyor ama sonra çalışıyor işte bende aynı sorunla karşılaşmıştım
  • 12-12-2007, 17:49:19
    #11
    Üyeliği durduruldu
    safe mod olsa
    file,file_get_contents gibi fonksiyonları engelliyor curl u engellemiyor daha sonra hostçu vay curl da mı vardı deyip ayrıyetten onuda engellerse ayrı mesele
  • 12-12-2007, 18:57:00
    #12
    Üyeliği durduruldu
    safe mod curl'un bazen cookie bırakmasını engelliyor. youporn botunda başıma geldi.