The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 18, 2019, 10:33:10 AM

Login with username, password and session length


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

Posts: 68


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
*****
Offline Offline

Posts: 10096



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

Nice Mampy.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
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!