Bwyan.dk / Brian René Jensen

Howto articles and a personal BLog.

PHP-eCTorrent v0.1

 with 2 comments

If you like the BitTorrent network and just happen to have a UNIX/Linux server with HTTP and MySQL-services running at home, you might like this little peace of PHP-programming that I’ve made.

What it is:

It lets you control and manage your BitTorrent downloads and uploads, right from your web-browser. You can start, stop and monitor sessions from where ever you have access to an internet connection. PHP-eCTorrent is also capable of creating new .torrent files.

PHP-eCTorrent uses, as the name implies, an enhanced version of the well know *NIX BitTorrent-client CTorrent called Enhanced CTorrent. (Not to be confused with the “regular” standard CTorrent program found in most *NIX repositories)

The reason for using Enhanced CTorrent instead of CTorrent, is simply because of the lack of features and poor performance of the “regular” CTorrent program. Enhanced CTorrent comes with allot of extra features and options, mainly for handling data-rates and seed ratios.

What you need:

You need the following software to use PHP-eCTorrent:

  • A HTTP server with PHP 5 support.
  • A MySQL server.
  • Enhanced CTorrent.
  • A *NIX operating system, capable of running all of the applications above.

How to install:

When you have installed the required software for PHP-eCTorrent, you need to go through 5 simple steps to get it running.

  1. Download the .php files from this link and the MySQL-file from this link.
  2. Second. Place the archive containing the downloaded .php files in your HTTP-server’s root directory. (most likely “/var/www/”)
  3. Third. You need to import the downloaded MySQL-file into your MySQL database. You can do this easily if you are using the “PHPMyAdmin” web-interface tool, by simply choosing “Import” on the first page after you’ve logged in. Alternatively, you can have a look in the MySQL-file with a simple text editor and apply the SQL-commands manually.
  4. Fourth. Edit “config.php” so that it fits to the configuration of your MySQL database. (This file also contains which username and password you want to use for PHP-eCTorrent and home path of Enhanced CTorrent)
  5. Last. Create the following three directories. “PHP-eCTorrent_home_dir”, “PHP-eCTorrent_home_dir/incomplete” and “PHP-eCTorrent_home_dir/complete” and make sure that the HTTP-server has write privileges in these folders.

And thats it. PHP-eCtorrent v0.1 should now be running on your system. But keep in mind, this is so far only an Alpha release, so you just might run into some bugs.

You’re welcome to contact me, if you are experiencing any problems.

Good luck and have fun! :)



Share this page, using your social network:

  • Facebook
  • Twitter
  • LinkedIn
  • MySpace
  • StumbleUpon
  • Digg
  • Slashdot
  • Netvibes
  • RSS
  • email

Written by Brian René Jensen on:

2. February, 2007 @ 14:29

Last update is on:

28. May, 2009 @ 13:08

Posted in PHP

2 Responses to 'PHP-eCTorrent v0.1'

Subscribe to comments with RSS or TrackBack to 'PHP-eCTorrent v0.1'.

  1. Hi Brian I have noticed the archives are now 404ing, would you know if this code still works with ECTorrent?

    Joseph

    26 Aug 09 at 18:41

  2. Hi Joseph.

    I have to admit that it’s been a long while since I’ve looked into improving the code.
    I recently started integrating the BitTorrent functionallity into another project I’m working on, but I haven’t gotten to it yet.

    I have to be honest and tell you, that I have no idea if it still works. The main reason why I still have this code on my homepage, is if someone would want to develop it further.

    That being said. I plan on releasing a new peace of php-software soon, that will be able to manage CTorrent sessions as well. So hang in there :)

    admin

    27 Aug 09 at 13:20

Leave a Reply