Search found 10 matches

by johan.adriaans
Thu Sep 22, 2011 10:15 am
Forum: General
Topic: [Solved] I coded a PHP class to talk to Transmission
Replies: 13
Views: 23288

Re: I coded a PHP class to communicate with Transmission

No problem! Good to hear you made some progress. In the future, if you want some more support on basic PHP stuff, you should try http://stackoverflow.com/, There's hundreds of people there who are willing to help you within a few minutes. Beats waiting a day for my replies :)
by johan.adriaans
Thu Sep 22, 2011 9:31 am
Forum: General
Topic: [Solved] I coded a PHP class to talk to Transmission
Replies: 13
Views: 23288

Re: I coded a PHP class to communicate with Transmission

Indeed..

Your array is multidimensional. The part you want to sort is: $result['arguments']['torrents']
So a simple array_reverse( $result['arguments']['torrents'] ); Should reverse your torrents. ;)
by johan.adriaans
Thu Sep 22, 2011 8:46 am
Forum: General
Topic: [Solved] I coded a PHP class to talk to Transmission
Replies: 13
Views: 23288

Re: I coded a PHP class to communicate with Transmission

Hi mate,

Sorry for the late reply. Good to see you figured out your initial problem. To sort the results you can use a native PHP sort function. To reverse an array you could use: http://php.net/array_reverse

But if you would want more control over your sorting you should use a function like ...
by johan.adriaans
Fri Jul 16, 2010 2:43 pm
Forum: General
Topic: Do RPC calls to transmission-daemon through php
Replies: 19
Views: 14773

Re: Do RPC calls to transmission-daemon through php

@deadeyes

Tnx for pointing this out and working out a fix! I will test it and implement it in the current version.
by johan.adriaans
Sun Jul 04, 2010 5:02 pm
Forum: General
Topic: Do RPC calls to transmission-daemon through php
Replies: 19
Views: 14773

Re: Do RPC calls to transmission-daemon through php

I suggested the class for the recources list, and there it is ;) Tnx again

http://www.transmissionbt.com/resources.php
by johan.adriaans
Sun Jul 04, 2010 1:33 pm
Forum: General
Topic: Do RPC calls to transmission-daemon through php
Replies: 19
Views: 14773

Re: Do RPC calls to transmission-daemon through php

Yep, new version is commited and available as a download. Great work brycec! I was really impressed with the results of your merge.
by johan.adriaans
Sat Jul 03, 2010 4:48 pm
Forum: General
Topic: Do RPC calls to transmission-daemon through php
Replies: 19
Views: 14773

Re: Do RPC calls to transmission-daemon through php

yeah im a very precise programmer..
Looking forward to your first merge! i think ill have some spare time to clean it up ;) And maybe some more examples?
by johan.adriaans
Thu Jul 01, 2010 3:19 pm
Forum: General
Topic: Do RPC calls to transmission-daemon through php
Replies: 19
Views: 14773

Re: Do RPC calls to transmission-daemon through php

@brycec Lol, yeah, unbelievable :)

The torrent-add metadata is handled by the $extra_options argument, so its in there, just a bit hidden ;)
I know the die() is bad practice; as i am using it as a shell script the die() is a more practical way of displaying whats wrong. I didn't feel the script ...
by johan.adriaans
Thu Jul 01, 2010 10:19 am
Forum: General
Topic: Do RPC calls to transmission-daemon through php
Replies: 19
Views: 14773

Re: Do RPC calls to transmission-daemon through php

Lol, I thought there was nothing definitive out there so i built this class. Should do better research next time ;)
http://code.google.com/p/php-transmissi ... loads/list
by johan.adriaans
Wed Jun 30, 2010 11:08 pm
Forum: General
Topic: [Solved] I coded a PHP class to talk to Transmission
Replies: 13
Views: 23288

[Solved] I coded a PHP class to talk to Transmission

Hi all,

I was fed up with all other heavier torrent clients; the only reason I used them was because of the RSS features. I had a look at the Transmission API documentation and coded a PHP class that can manage your Transmission torrents. I am a PHP programmer and decided that I would write my own ...