webdevRefinery Forum: Looking for a torrent client with a PHP class - webdevRefinery Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Rate Topic: -----

User is offline IcyTexx 

  • Group: Members
  • Posts: 351
  • Joined: 08-March 10
  • LocationCroatia

Posted 13 May 2012 - 08:55 PM (#1)

Looking for a torrent client with a PHP class


The title says it all. :D
Do you know a torrent client I can install on Debian and control it via PHP? I see Transmission has an old written class? Does it even work?
0


User is online Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3435
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 13 May 2012 - 10:32 PM (#2)

rTorrent has an XMLRPC API you can use via PHP's xmlrpc extension. You need to configure a web server to host it.

Here's my implementation from a past project, rTorrentWeb: https://github.com/D...s/Rtorrent.php. I've got some configuration instructions on the rTorrentWeb wiki pages.

Other rTorrent frontends (like wTorrent) have similar implementations
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
2


User is offline callumacrae 

  • {{ post.author }}
  • Group: Members
  • Posts: 2867
  • Joined: 20-January 11
  • LocationWarwickshire, England
  • Expertise:HTML,CSS,PHP,Javascript,Node.js,SQL

Posted 14 May 2012 - 01:24 AM (#3)

rTorrenr is great, and ruTorrent (iirc) is written in PHP, so you can look at how it does it.
Front-end developer and writer
Twitter | GitHub | phpBB Contributor and Website Team Member | lynxphp
0


User is offline IcyTexx 

  • Group: Members
  • Posts: 351
  • Joined: 08-March 10
  • LocationCroatia

Posted 14 May 2012 - 06:43 AM (#4)

Whoa, thanks guys!
0


User is online Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3435
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 14 May 2012 - 07:58 AM (#5)

As far as I can remember, ruTorrent does calls straight from JavaScript to rTorrent. It doesn't actually use much PHP.
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
0


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users


Enter your sign in name and password


Sign in options
  Or sign in with these services