No problem webmastir, any time!
(P.S. You could work the $rpc->add() into the rss loop as well:
$rpc = new TransmissionRPC();
foreach($rss->items as $rss_item)
{
// do some rss feed item massage
// end up with the .torrent url in $torrent
$rpc->add($torrent);
// move on to the next item in the rss ...
Search found 9 matches
- Sun Jul 04, 2010 6:06 am
- Forum: General
- Topic: [Solved] I coded a PHP class to talk to Transmission
- Replies: 13
- Views: 23286
- Sun Jul 04, 2010 5:52 am
- Forum: General
- Topic: [Solved] I coded a PHP class to talk to Transmission
- Replies: 13
- Views: 23286
Re: I coded a PHP class to communicate with Transmission
webmastir,
Presuming you're writing a script from scratch (because this is a library, not a solution), you would implement an RSS parser however you saw fit, and could simply pass .torrent urls to $rpc->add($url);
Something like... (pseudo-code here)
$rpc = new TransmissionRPC();
$array_of ...
Presuming you're writing a script from scratch (because this is a library, not a solution), you would implement an RSS parser however you saw fit, and could simply pass .torrent urls to $rpc->add($url);
Something like... (pseudo-code here)
$rpc = new TransmissionRPC();
$array_of ...
- Sat Jul 03, 2010 11:39 pm
- Forum: General
- Topic: Do RPC calls to transmission-daemon through php
- Replies: 19
- Views: 14756
Re: Do RPC calls to transmission-daemon through php
@deadeyes
I've uploaded my merged version to http://code.google.com/p/php-transmission-class/
Give it a shot? I'm sure Johan will be making edits soon.
Todo: More examples. Documentation (any at all).
I've uploaded my merged version to http://code.google.com/p/php-transmission-class/
Give it a shot? I'm sure Johan will be making edits soon.
Todo: More examples. Documentation (any at all).
- Sat Jul 03, 2010 4:55 pm
- Forum: General
- Topic: Do RPC calls to transmission-daemon through php
- Replies: 19
- Views: 14756
Re: Do RPC calls to transmission-daemon through php
Thanks Johan - I haven't had time until this morning, so I'm furiously merging away... (among other things)
I agree, more examples would be good. Especially if they could illustrate Exception handling :wink:
Once I get this merge done, I have a bunch of work to do on my "other project" (one of many ...
I agree, more examples would be good. Especially if they could illustrate Exception handling :wink:
Once I get this merge done, I have a bunch of work to do on my "other project" (one of many ...
- Sat Jul 03, 2010 4:13 pm
- Forum: General
- Topic: Do RPC calls to transmission-daemon through php
- Replies: 19
- Views: 14756
Re: Do RPC calls to transmission-daemon through php
@deadeyes,
No problem - I'm merging Johan's and my efforts right now, and I've included the constructor.
A note - my original class did use json_decode(..., true). Maybe you were addressing Johan's? Regardless, that has been copied over as well.
I'm looking forward to posting a followup later today ...
No problem - I'm merging Johan's and my efforts right now, and I've included the constructor.
A note - my original class did use json_decode(..., true). Maybe you were addressing Johan's? Regardless, that has been copied over as well.
I'm looking forward to posting a followup later today ...
- Thu Jul 01, 2010 4:32 pm
- Forum: General
- Topic: Do RPC calls to transmission-daemon through php
- Replies: 19
- Views: 14756
Re: Do RPC calls to transmission-daemon through php
@johan.adriaans
Sure, I'm open to that. Let's PM on the details and such.
Sure, I'm open to that. Let's PM on the details and such.
- Thu Jul 01, 2010 1:57 pm
- Forum: General
- Topic: Do RPC calls to transmission-daemon through php
- Replies: 19
- Views: 14756
Re: Do RPC calls to transmission-daemon through php
Haha so we all wrote our own at about the same time... What are the odds?
@deadeyes
Just to clarify - The class I wrote has no dependency on JSON-RPC. It also has no dependency on cURL - the platform I'm using it in doesn't have the PHP cURL extension, so I stuck with the basics. (I'm not knocking ...
@deadeyes
Just to clarify - The class I wrote has no dependency on JSON-RPC. It also has no dependency on cURL - the platform I'm using it in doesn't have the PHP cURL extension, so I stuck with the basics. (I'm not knocking ...
- Mon Jun 28, 2010 7:43 am
- Forum: General
- Topic: Do RPC calls to transmission-daemon through php
- Replies: 19
- Views: 14756
Re: Do RPC calls to transmission-daemon through php
I've posted version 0.1 of my PHP library (it's a class, if you want to be technical) at
http://www.cobryce.com/transmission-rpc-php-library
I'd like to emphasize that it's still pretty young, and it's not been extensively (or barely) tested. It's working for my project, that's all I can say.
I ...
http://www.cobryce.com/transmission-rpc-php-library
I'd like to emphasize that it's still pretty young, and it's not been extensively (or barely) tested. It's working for my project, that's all I can say.
I ...
- Sun Jun 27, 2010 1:00 pm
- Forum: General
- Topic: Do RPC calls to transmission-daemon through php
- Replies: 19
- Views: 14756
Re: Do RPC calls to transmission-daemon through php
Hi deadeyes!
As it just so happens, I started work tonight on a PHP Class based loosely on the JSON-RPC project you linked to. I searched for something, anything, but came up with nil so I am writing my own (to be used in another project).
I'll be sure to post another reply when I have a release ...
As it just so happens, I started work tonight on a PHP Class based loosely on the JSON-RPC project you linked to. I searched for something, anything, but came up with nil so I am writing my own (to be used in another project).
I'll be sure to post another reply when I have a release ...