The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. November 19, 2008, 05:15:44 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Php Open Source Torrent Tracker  (Read 128 times)
mampy
Rookie
**
Offline Offline

Posts: 17


View Profile
« on: August 13, 2008, 12:26:52 PM »

Lets say you wanted to move 40 gigs of files from one place to another,
well a torrent is a really good way to move any amount or size of files
its p2p but uses a tracker as a traffic controller.  Its really great
for sending large collections of files from one server to another.
In a way that can be stopped and restarted.

Youll need a tracker, and a client application.

Running your own tracker is really easy If you have *amp installed:

FOSS Opentracker is the way I went:

www .whitsoftdev. com/opentracker/

Without the spaces, of course.

unzip it,

To run OpenTracker, you need two things: a web server that supports PHP, and a MySQL database.

PHP should be set for magic_quotes_gpc off.

Execute the included dbschema.sql on your database. This will create the table required by OpenTracker, which is named `peers` by default. You may rename the table if desired.

Code:

DROP TABLE IF EXISTS `peers`;
CREATE TABLE `peers` (
  `info_hash` char(20) binary NOT NULL default '',
  `ip` int(11) NOT NULL default '0',
  `port` smallint(5) unsigned NOT NULL default '0',
  `peer_id` char(20) binary NOT NULL default '',
  `uploaded` bigint(20) unsigned NOT NULL default '0',
  `downloaded` bigint(20) unsigned NOT NULL default '0',
  `left` bigint(20) unsigned NOT NULL default '0',
  `update_time` timestamp(14) NOT NULL,
  `expire_time` timestamp(14) NOT NULL,
  PRIMARY KEY  (`info_hash`,`ip`,`port`)
) TYPE=HEAP;

Edit config.inc.php, filling in the appropriate information for your database setup.

That's all there is to it. Create a torrent using announce.php on your server as the announce URL, and away you go.


Really neat to see the source for an app like this.  Im looking into php client will post mor l8r

Mampy
« Last Edit: August 13, 2008, 12:28:39 PM by mampy » Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 5136


:sniffle: Humor was so much easier before.


View Profile
« Reply #1 on: August 13, 2008, 04:39:38 PM »

Nice Mampy.
Logged

If I can't be Mr. Root then I don't want to play.
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!