PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
//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);
if ($_GET["action"]=="recheckall")
//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);