Members   Search      Help    Register    Login    Home
Today's Messages (off)  | Unanswered Messages (on)

Forum: General Help
 Topic: Uploaded torrent download error not valid bencoding
Uploaded torrent download error not valid bencoding [message #5701] Sun, 11 September 2011 12:49
ironcross77 is currently offline ironcross77  India
Messages: 6
Registered: May 2009
Leecher
When I am redownloading the torrent to seed it utorrent is saying error not valid bencoding".

Please help


http://www.technoside.info/UserFiles/krazy0mega/sig.png
 Topic: casino_player.php bug.
casino_player.php bug. [message #5518] Fri, 27 May 2011 05:12
wildboy211 is currently offline wildboy211  United States
Messages: 13
Registered: February 2011
Location: My computer desk.
Leecher

Not sure where i was supposed to put this, but i found some bugs in this page, dealing with the SQL queries. To fix:

Around line 127, find:
$res = $db->sql_query("select torrent_users.id as userid,torrent_users.username, torrent_users.downloaded,torrent_users.uploaded,".$db_prefix."_casino.win,".$db_prefix."_casino.lost,".$db_prefix."_casino.deposit from ".$db_prefix."_casino inner join torrent_users on ".$db_prefix."_casino.userid = torrent_users.id  ORDER BY (".$db_prefix."_casino.win - ".$db_prefix."_casino.lost) DESC $limit") or sqlerr();


Replace with:
$res = $db->sql_query("select ".$db_prefix."_users.id as userid,".$db_prefix."_users.username, ".$db_prefix."_users.downloaded,".$db_prefix."_users.uploaded,".$db_prefix."_casino.win,".$db_prefix."_casino.lost,".$db_prefix."_casino.deposit from ".$db_prefix."_casino inner join ".$db_prefix."_users on ".$db_prefix."_casino.userid = ".$db_prefix."_users.id  ORDER BY (".$db_prefix."_casino.win - ".$db_prefix."_casino.lost) DESC $limit") or sqlerr();


And this should fix it. Attached is the fixed php page - note only use this if you havent made any changes to this page - any changes you made will be lost.
 Topic: pretime
pretime [message #4477] Thu, 15 July 2010 21:14
firefly007 is currently offline firefly007  South Africa
Messages: 79
Registered: May 2010
Seeder
I got this from tbdev it will alow pre time . Can someone please mod this for phpmybitorrent.
function ago($seconds){
$day=date("j",$seconds)-1;
$month=date("n",$seconds)-1;
$year=date("Y",$seconds)-1970;
$hour=date("G",$seconds)-1;
$minute=(int) date("i",$seconds);
$returnvalue=false;
if($year){
if($year==1) $return[]="1 year"; else $return[]="$year years";
}
if($month){
if($month==1) $return[]="1 month"; else $return[]="$month months";
}
if($day){
if($day==1) $return[]="1 day"; else $return[]="$day days";
}
if($hour){
if($hour==1) $return[]="1 hour"; else $return[]="$hour hours";
}
if($minute&&$minute!=00){
if($minute==1){
$return[]="1 minute";
}else{
$return[]="$minute minutes";
}
}
for($i=0;$i<count($return);$i++){
if(!$returnvalue){
$returnvalue=$return[$i];
}elseif($i<count($return)-1){
$returnvalue.= ", ".$return[$i];
}else{
$returnvalue.= " and ".$return[$i];
}
}
return $returnvalue;

}

function getpre($name, $type)
{
$pre['regexp'] = "|<td>(.*)<td>(.*)<td>(.*)</table>|";
$pre['url'] = "http://doopes.com/?cat=454647&lang=0&num=2&mode=0&from=&to=&exc=&inc=" . $name . "&opt=0";
$pre['file'] = @file_get_contents($pre['url']);
preg_match($pre['regexp'], $pre['file'], $pre['matches']);
/**
* Types:
* 1 = Time
* 2 = Category
* 3 = Realesename
*/
return $pre['matches'][$type];
}  


 Topic: Fix Email pm
Fix Email pm [message #2955] Thu, 08 October 2009 21:12
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
Is there a script (or similiar php mini program) out there already that will check all email addresses and if not valid ..will send a pm to user's inbox to fix it?

I rather have something already ready made or something similiar I can work off of , that I can just clone and modify and move on to my other busy schedule of stuff..

if there isn't anything out there alreay that can use, then I will have to write one..to force people to clean up their act.. and could be fun to do or enhance something upon Laughing
 Topic: Please Help: HTTP 406 Error - URGENT
icon8.gif  Please Help: HTTP 406 Error - URGENT [message #2604] Fri, 08 May 2009 07:38
shaikat is currently offline shaikat  India
Messages: 1
Registered: May 2009
Location: India
Leecher
hello frnds....i m a newbie here...Hope u guyz will help me wid this...

I have installed everything and the script seems to be working fine including uploads.

I have created a torrent file using bit torrent and in that i used my own site tracker (http://ugoshare.com/announce.php). When the torrent is created and started seeding, I get an error on tracker called HTTP 406 error. Enclosing the screenshot below. Please help me with this. Also when i open the announce.php from browser, it shows me a 500 Internal server error.
 Topic: bunch of apache error in logs
bunch of apache error in logs [message #1557] Mon, 19 November 2007 05:08
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
v1.2.2
I am getting tons of errors like this in apache error logs, while clients are scraping/announcing . any idea?

[Sun Nov 18 21:05:06 2007] [error] [client 130.243.156.230] PHP Notice: Undefined property: q
uery_result in /usr/local/www/apache22/data/pmbt/include/db/mysql4.php on line 118
[Sun Nov 18 21:05:07 2007] [error] [client 65.182.51.67] PHP Notice: Undefined index: max_num
_file_day_e in /usr/local/www/apache22/data/pmbt/include/config_lite.php on line 92
[Sun Nov 18 21:05:07 2007] [error] [client 65.182.51.67] PHP Notice: Undefined index: max_num
_file_week_e in /usr/local/www/apache22/data/pmbt/include/config_lite.php on line 93
[Sun Nov 18 21:05:07 2007] [error] [client 65.182.51.67] PHP Notice: Undefined index: maxuplo
ad_day_num in /usr/local/www/apache22/data/pmbt/include/config_lite.php on line 96
[Sun Nov 18 21:05:07 2007] [error] [client 65.182.51.67] PHP Notice: Undefined index: maxuplo
ad_day_share in /usr/local/www/apache22/data/pmbt/include/config_lite.php on line 97
[Sun Nov 18 21:05:07 2007] [error] [client 65.182.51.67] PHP Notice: Undefined variable: row2
in /usr/local/www/apache22/data/pmbt/include/config_lite.php on line 103
[Sun Nov 18 21:05:07 2007] [error] [client 65.182.51.67] PHP Notice: Undefined variable: row2
in /usr/local/www/apache22/data/pmbt/include/config_lite.php on line 104
[Sun Nov 18 21:05:07 2007] [error] [client 65.182.51.67] PHP Notice: Undefined variable: row2
in /usr/local/www/apache22/data/pmbt/include/config_lite.php on line 105
[Sun Nov 18 21:05:07 2007] [error] [client 65.182.51.67] PHP Notice: Undefined variable: row2
in /usr/local/www/apache22/data/pmbt/include/config_lite.php on line 106
[Sun Nov 18 21:05:07 2007] [error] [client 65.182.51.67] PHP Notice: Undefined variable: row2
in /usr/local/www/apache22/data/pmbt/include/config_lite.php on line 107
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined index: max_num_file_day_e in /usr/local/www/
apache22/data/pmbt/include/config_lite.php on line 92
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined index: max_num_file_week_e in /usr/local/www
/apache22/data/pmbt/include/config_lite.php on line 93
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined index: maxupload_day_num in /usr/local/www/a
pache22/data/pmbt/include/config_lite.php on line 96
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined index: maxupload_day_share in /usr/local/www
/apache22/data/pmbt/include/config_lite.php on line 97
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22/da
ta/pmbt/include/config_lite.php on line 103
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22/da
ta/pmbt/include/config_lite.php on line 104
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22/da
ta/pmbt/include/config_lite.php on line 105
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22/da
ta/pmbt/include/config_lite.php on line 106
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22/da
ta/pmbt/include/config_lite.php on line 107
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22/da
ta/pmbt/include/config_lite.php on line 108
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined variable: info_hash_arr in /usr/local/www/ap
ache22/data/pmbt/scrape.php on line 64
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined variable: r in /usr/local/www/apache22/data/
pmbt/scrape.php on line 70
[Fri Nov 16 16:26:25 2007] [error] [client 61.153.150.99] PHP Notice: Undefined property: query_result in /usr/local/www/apa
che22/data/pmbt/include/db/mysql4.php on line 118
[Fri Nov 16 16:26:45 2007] [error] [client 194.242.202.241] PHP Notice: Undefined index: max_num_file_day_e in /usr/local/ww
w/apache22/data/pmbt/include/config_lite.php on line 92
[Fri Nov 16 16:26:45 2007] [error] [client 194.242.202.241] PHP Notice: Undefined index: max_num_file_week_e in /usr/local/w
ww/apache22/data/pmbt/include/config_lite.php on line 93
[Fri Nov 16 16:26:45 2007] [error] [client 194.242.202.241] PHP Notice: Undefined index: maxupload_day_num in /usr/local/www
/apache22/data/pmbt/include/config_lite.php on line 96
[Fri Nov 16 16:26:45 2007] [error] [client 194.242.202.241] PHP Notice: Undefined index: maxupload_day_share in /usr/local/w
ww/apache22/data/pmbt/include/config_lite.php on line 97
[Fri Nov 16 16:26:45 2007] [error] [client 194.242.202.241] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22/
data/pmbt/include/config_lite.php on line 103
[Fri Nov 16 16:26:45 2007] [error] [client 194.242.202.241] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22/
data/pmbt/include/config_lite.php on line 104
[Fri Nov 16 16:26:45 2007] [error] [client 194.242.202.241] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22/
data/pmbt/include/config_lite.php on line 105
[Fri Nov 16 16:26:45 2007] [error] [client 194.242.202.241] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22/
data/pmbt/include/config_lite.php on line 106
[Fri Nov 16 16:26:45 2007] [error] [client 194.242.202.241] PHP Notice: Undefined variable: row2 in /usr/local/www/apache22
 Topic: if u have problem with finding trackers sites
icon14.gif  if u have problem with finding trackers sites [message #1551] Sun, 18 November 2007 16:49
nour140 is currently offline nour140  Egypt
Messages: 1
Registered: September 2006
Leecher
guys if u want to have invite to most of trackers and torrents sites or u have invites and want to trade with anyone u can make in this site it is fast and new and grow up fast try it ....

http://tracker-invites.org/index.php?referredby=2546


good luck

[Updated on: Sun, 18 November 2007 16:51]

Report message to a moderator

 Topic: php security
php security [message #1510] Tue, 06 November 2007 17:07
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
Anyone running PMBT with suphp, suexec, CGI binary or interpreter and other security measures?

How is it working? any problems? what are the benefits and disadvantages? is performance effected?

thnx.
 Topic: Apache 2 a must?
Apache 2 a must? [message #1379] Sun, 07 October 2007 21:59
dcarey  United States
Messages: 8
Registered: October 2007
Leecher
Hi I'm trying to install and I keep getting 403s. I read something someplace tending to indicate that just about any webserver would work. Then I read something that said only Apache 2.0 and higher. Currently my hoster is runner 1.3.36 . Just want to find a definite yes or no on this. Thanks in advance.

-Dave
 Topic: Invite Problem
Invite Problem [message #1313] Thu, 06 September 2007 17:08
wwwdoidosorg is currently offline wwwdoidosorg  Brazil
Messages: 14
Registered: September 2007
Leecher
i was testing invite system and i got this error

i followed the confirmation link i got this page

....confirminvite.php?id=.....

where i had to put name, password, retype pass and accept rules, faq and age...


the error was:

the password confirmation didnt work and alway got this message

Password dont match in the file

...takeconfirminvite.php?id=....


Any ideas to fix it?

thanks

Very Happy
 Topic: error in the texts
error in the texts [message #738] Wed, 21 March 2007 01:07
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
ok there is an error in my shoutbox, pm, and coments.
any one know how to stop this?
when ever " ' " is used it shows like \'


http://a.imageshack.us/img831/5562/mybikes.png
 Topic: "Invalid encoding" error in bencoder-domxml.php
"Invalid encoding" error in bencoder-domxml.php [message #393] Wed, 22 November 2006 11:01
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
i've got severe problems getting phpMyBitTorrent workin on my new virtual server. it runs php 4.4, and the domxml extension is included and recognized by the setup script.

the problem is in bencoder-domxml.php. when you upload an externally tracked torrent, this error message results:

Quote:


*Warning*: Invalid encoding. Node type must be one of the following:
String, Dictionary, List, Integer in
*[...]/pmbt/include/bencoder-domxml.php* on line
*87*

*Notice*: Node content: in
*[...]/pmbt/include/bencoder-domxml.php* on line
*88*

*Warning*: Empty Result:
files/da39a3ee5e6b4b0d3255bfef95601890afd80709/complete(Inte ger) in
*[...]/pmbt/include/bdecoder-domxml.php* on line
*227

_btscrapeerror
_btnoseedersontracker


that's it -- the torrent is not getting listed. i tried 100 different torrents, it's the same everywhere.

when it's an internally tracked torrent, it's very similar:

Quote:

**Warning*: Invalid encoding. Node type must be one of the following:
String, Dictionary, List, Integer in
*[...]/pmbt/include/bencoder-domxml.php* on line
*87*

*Notice*: Node content: in
*[...]/pmbt/include/bencoder-domxml.php* on line *88
**
Warning*: Invalid encoding. Node type must be one of the following:
String, Dictionary, List, Integer in
*[...]/pmbt/include/bencoder-domxml.php* on line
*87*

*Notice*: Node content: in
*[...]/pmbt/include/bencoder-domxml.php* on line
*88*


internally tracked torrents DO get listed, but they're displayed with 0 seeds, 0 peers, and you can't connect to the tracker in a client (ktorrent says "invalid response" for example).

i already told djechelon about this, and he says he can't tell exacty why this is, but he suspects that it's socket problems on the server.

can anybody give me a clue maybe?
 Topic: Whole HOST of problems
Whole HOST of problems [message #259] Mon, 09 October 2006 20:54
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
I've done some testing since we got phpmybittorrent 1.0 going on our new server (thanks again, Antonio!).

I ran into a whole host of problems, though. I hope we can work this out here one by one. I did a complete fresh install of version 1.0.


1. Uploading torrents with the local tracker
as announce URL results in the following:

Quote:

Warning: Invalid encoding. Node type must be one of the following: String, Dictionary, List, Integer in /webpages/ChomskyTorrents.org/pmbt2/include/bencoder-domxml. php on line 87

Notice: Node content: in /webpages/ChomskyTorrents.org/pmbt2/include/bencoder-domxml. php on line 88

Warning: Invalid encoding. Node type must be one of the following: String, Dictionary, List, Integer in /webpages/ChomskyTorrents.org/pmbt2/include/bencoder-domxml. php on line 87

Notice: Node content: in /webpages/ChomskyTorrents.org/pmbt2/include/bencoder-domxml. php on line 88



The thing does pop up in the list. But when i try to seed, kTorrent says "Invalid response from tracker". And phpmybittorrent doesn't see me as a seeder either.



2. Uploading external torrents
results in the following:

Quote:

Warning: Invalid encoding. Node type must be one of the following: String, Dictionary, List, Integer in /webpages/ChomskyTorrents.org/pmbt2/include/bencoder-domxml. php on line 87

Notice: Node content: in /webpages/ChomskyTorrents.org/pmbt2/include/bencoder-domxml. php on line 88
Error!!_btscrapeerror

Invalid data on external tracker. There can be server problems on the tracker. Please try again later.


i made sure the tracker was working and the torrent was well seeded.


3. Uploading ed2K links


adding links in the form works, and a entry is created successfully, but in the file list there's no files showing up.

EDIT:

4. Confirmation mails


...aren't sent off, it seems. could it be there's some mail daemon missing on my server or something? i DID check the spam-filter, btw Smile



that's it so far Sad situation seems pretty bleak..


[Updated on: Mon, 09 October 2006 21:54]

Report message to a moderator

 Topic: DOM XML help
icon4.gif  DOM XML help [message #177] Sun, 27 August 2006 15:33
djechelon is currently offline djechelon  Italy
Messages: 207
Registered: June 2006
Location: Ercolano, NA
Releaser
Administrator

I decided to open this topic to help who is having problems with DOM XML.

This topic is read only in order to not make eccessive confusion during discussions. Consider this topic as a collection of FAQs that will be updated on every new issue.


  • Part 0: What if I can't use DOM XML?

Before following this tutorial, you must know that if you can't use DOM XML you can't use phpMyBitTorrent at all. You will be able only to install versions up to 0.7.10. But, if DOM XML has failed till now it doesn't directly mean that you can't use it at all. So try this tutorial before throwing the towel.


  • Part 1: What you should know about DOM XML


DOM XML is a PHP extension that allows to handle XML documents with an advanced set of classes, as defined in DOM XML standards by W3C.
phpMyBitTorrent uses DOM XML to make operations on Torrents that else wouldn't have been possible. At the time I'm writing, the feature that actively uses DOM XML is not yet present, but I'm working on it. DOM XML makes also possible the generation of an RDF feed that is compliant with the specifications of the W3C, and to easily read the structure of Torrents.
In few words, DOM XML goes beyond the limits of the old bencoder core.


  • Part 2: Can everybody use DOM XML?

Unfortunately, not everybody. In order to use DOM XML, you server must be able to use it! Seems a word-game, but it's not. We can't tell you a priori (before you test it) if your server supports DOM XML, but we know the situation for some users. Let's examine what can determine you ability to execute DOM XML


  • If Safe Mode is enabled, you cannot use DOM XML
  • If your PHP version is less than 4.0, you cannot use DOM XML
  • If you use PHP 5, can use DOM XML
  • If you use Windows, you may use DOM XML
  • If you are the owner of your server, you can use DOM XML after properly configuring PHP
  • If you are using a free or cheap hosting service, you may not use DOM XML


You will know that you can use DOM XML only after seeing phpMyBitTorrent work good


  • Part 3: Recompiling DOM XML

The following applies on UNIX system. If your server uses Windows, you don't need to recompile anything.

First of all, why recompiling?
The answer is simple: if you get a load error while trying to load DOM XML, it means that you can't use the version provided with phpMyBitTorrent (at this time you can't say you can't use DOM XML yet). The first thing you should try is recompiling DOM XML. Unfortunately, you can recompile DOM XML in a way that it will 90% works (the left 10% is the possibility that your server admin applied some kind of protection that doesn't allow you to use DOM XML or other extensions at all) ONLY if you have shell access, even with restricted privileges. If your server has SSH, and you have an account, you can recompile DOM XML.
If you can't recompile DOM XML, you can try to recompile DOM XML on a machine that has the same hardware and software configuration of the server. The success probabilities are of the 70%, according on how precisely you match the server configuration (refer to phpinfo()).
The last option is to try one of the domxml.so files that we will distribute on this topic. Some will be made using SourceForge compile farm.

How to manually recompile?
Download the source package of YOUR PHP VERSION and decompress it in any directory.
With user shell, enter that directory and use the following commands:

  • $ ./configure
  • $ make
  • $ cd extensions

Then, using cp command, copy the domxml.so file you find in that directory into phpMyBitTorrent's extensions directory.

Will it work?
Probabily.


  • Part 4: known scenarios

We have been reported that phpMyBitTorrent refuses torrents on FreeBSD. We don't know the reason, but plaese avoid FreeBSD when choosing server environment.


If you have more problems please open a topic, possibly linking a phpinfo script or reporting its summary here (please use [SPOILER] tags for best appearence)


Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.

[Updated on: Sun, 02 December 2007 02:26] by Moderator

Report message to a moderator

 Topic: member list
icon1.gif  member list [message #147] Fri, 04 August 2006 20:19
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
Can some one help me with this code? It pulls out and displays what i want but i also want it to link to the names any help?
<html> 

<body> 
<?php 
$database="joerobe_mybittorrent"; 
@mysql_select_db($database) or die( "Unable to select database"); 
$result = mysql_query( "SELECT username, id, level, uploaded, downloaded FROM torrent_users" ) 
or die("SELECT Error: ".mysql_error()); 
$num_rows = mysql_num_rows($result); 
print "<font size=80/>There are <strong>$num_rows</strong> members.<P>"; 
print "<table width=400 border=1>\n"; 
print "\t<td><font color=#996600 font face=arial size=3/><strong>MEMBER</strong></td></td>\n"; 
print "\t<td><font color=#996600 font face=arial size=3/><strong>ID</strong></td></td>\n";
print "\t<td><font color=#996600 font face=arial size=3/><strong>LEVEL</strong></td></td>\n";
print "\t<td><font color=#996600 font face=arial size=3/><strong>UPLOADED</strong></td></td>\n";
print "\t<td><font color=#996600 font face=arial size=3/><strong>DOWNLOADED</strong></td></td>\n";
while ($get_info = mysql_fetch_row($result)){
print "<tr>\n"; 
foreach ($get_info as $field) 
print "\t<td><font face=arial size=2/>$field</font></td>\n"; 
print "</tr>\n"; 
} 
print "</table>\n"; 
?> 
</body> 
</html> 


http://a.imageshack.us/img831/5562/mybikes.png



Current Time: Thu Feb 09 20:21:54 GMT 2012

Total time taken to generate the page: 0.00918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software