Code: Select all
public function getTorrents()WebUI API: http://pastebin.com/m76205d0b
I have this one, but it doesn't work.
Code: Select all
$utorrent = new uTorrent();
$utorrent->host = $_SESSION['host'];
$utorrent->user = $_SESSION["user"];
$utorrent->pass = $_SESSION["pass"];
$torrents = $utorrent->getTorrents();
foreach($torrents as $torrent) {
echo $torrent[UTORRENT_TORRENT_NAME]."\n";
}I really appreciate your help