TBDev Forum
Programming board
Main Page Forum Rules Privacy Policy Members Contact Us
Welcome Guest (Login | Register)
TBDev Forum TBDev.net - Help General Support Fatal Error

Fatal Error

2006-11-11 11:36:00
Group: Member
Posts: 100
Topics participated: 43
Topics started: 11
First post: 2006-03-22 20:43:00
Last post: 2008-12-06 09:55:00
Hi,

I just got error from my tracker AND nothing is changed in the code..worked fine for a long time.
Same code works just fine on my subdomain in the same server..



The error i get is Fatal error: Call to undefined function: bdec_file() in /home/xxxx/domains/xxxx/public_html/download.php on line

if (strlen($CURUSER['passkey']) != 32) {

$CURUSER['passkey'] = md5($CURUSER['username'].get_date_time().$CURUSER['passhash']);

mysql_query("UPDATE users SET passkey='$CURUSER[passkey]' WHERE id=$CURUSER[id]");

}



$dict = bdec_file($fn, (1024*1024));

$dict['value']['announce']['value'] = "$BASEURL/announce.php?passkey=$CURUSER[passkey]";

$dict['value']['announce']['string'] = strlen($dict['value']['announce']['value']).":".$dict['value']['announce']['value'];

$dict['value']['announce']['strlen'] = strlen($dict['value']['announce']['string']);

// Remove multiple trackers from torrent
unset($dict['value']['announce-list']);





header("Content-Type: application/x-bittorrent");



print(benc($dict));
}
else {
 
2006-11-11 18:25:00
Group: Member
Posts: 2607
Topics participated: 1470
Topics started: 2
First post: 2006-07-10 10:45:00
Last post: 2008-06-13 17:08:00
is that all you download.php file?? doesnt look like it, you missing like first and few extra stuff
 

Similar threads

Topic Posts Last post
fatal error 3 2006-05-20 16:12:00
Fatal error 3 2007-03-29 13:33:00
Fatal Error 1 2006-09-19 17:08:00
Fatal error: 3 2008-08-08 12:23:00
Fatal error: 2 2008-12-21 02:49:00