Call code from URL
Posted: Sat Apr 05, 2008 6:18 pm
I have this code:
How can i make it run when i click on a link?
<a href=" ??? ">Link</a>
Thanks for your help
Code: Select all
//Forces a recheck of every torrent
//Way number two (faster)
$utorrent = new uTorrent();
$torrents = array();
//collects an array containing every hash
foreach($utorrent->getTorrents() as $torrent) {
$torrents[] = $torrent[UTORRENT_TORRENT_HASH];
}
//rechecks every torrent
$utorrent->recheck($torrents);
<a href=" ??? ">Link</a>
Thanks for your help