Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
Thread Tools
  #11  
Old 10th October 2008, 18:47
movizdb movizdb is offline
Senior Member
 
Join Date: Sep 2008
France
Posts: 142
Default
hello i have this
Code:
Fatal error: Call to undefined function curl_init() in /users/movizdb/www/backend/functions.php on line 846
Reply With Quote
  #12  
Old 10th October 2008, 23:39
Subzero's Avatar
Subzero Subzero is offline
Coder
 
Join Date: Jul 2008
P2P
Posts: 190
Default
Quote:
Originally Posted by movizdb View Post
hello i have this
Code:
Fatal error: Call to undefined function curl_init() in /users/movizdb/www/backend/functions.php on line 846
That function no there then m8
Reply With Quote
  #13  
Old 4th April 2009, 17:46
hack346 hack346 is offline
Banned
 
Join Date: Mar 2008
Turkey
Posts: 80
Smile
open your function.php

find:

Code:
function torrent_scrape_url($scrape, $hash) {
    $ch = curl_init();
    $timeout = 5;
    curl_setopt ($ch, CURLOPT_URL, $scrape.'?info_hash='.escape_url($hash));
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $fp = curl_exec($ch);
    curl_close($ch);

    $ret = array();
    if(!$fp) {
        $ret['seeds'] = -1;
        $ret['peers'] = -1;
    }else{
        $stats = BDecode($fp);
        $binhash = addslashes(pack("H*", $hash));
        $seeds = $stats['files'][$binhash]['complete'];
        $peers = $stats['files'][$binhash]['incomplete'];
        $downloaded = $stats['files'][$binhash]['downloaded'];
        $ret['seeds'] = $seeds;
        $ret['peers'] = $peers;
        $ret['downloaded'] = $downloaded;
    }
    return $ret;
}
change with:

Code:
function torrent_scrape_url($scrape, $hash) {
    ini_set('default_socket_timeout',10); 
    @$fp = file_get_contents($scrape.'?info_hash='.escape_url($hash));
    $ret = array();
    if(!$fp) {
        $ret['seeds'] = -1;
        $ret['peers'] = -1;
    }else{
        $stats = BDecode($fp);
        $binhash = addslashes(pack("H*", $hash));
        $seeds = $stats['files'][$binhash]['complete'];
        $peers = $stats['files'][$binhash]['incomplete'];
        $downloaded = $stats['files'][$binhash]['downloaded'];
        $ret['seeds'] = $seeds;
        $ret['peers'] = $peers;
        $ret['downloaded'] = $downloaded;
    }
    return $ret;
}
in conclusion, restore your old code

that error is not a tracker source bug

that error means : This torrent does not exist in this tracker. (this error is available for external torrents)
Reply With Quote
Reply

Tags
error , ext


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help error, http error and invalid passkey thereal Torrent Strike 0 9th April 2009 02:07
URGENT !! Parse error: syntax error sharpe Torrent Strike 8 24th September 2008 15:10



All times are GMT +2. The time now is 05:10. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.