Results 1 to 10 of 13
Threaded View
-
21st Sep 2011, 06:10 PM #9Respected MemberWebsite's:
DL4Everything.com Soft2050.inExecute this:
PHP Code://***Check whether torrents are complete***
$check = true;
while ($check) {
$c = 0;
foreach ($id as $value) {
$result = callTransmission(array("fields" => array("id", "name", "percentDone"), "ids" => array($value)), "torrent-get", $arr[1]);
print_r($result); exit;
preg_match('/"percentDone":[0-9.]+/i', $result[0], $matches);
$adii = substr($matches[0], 14);
$anuj = (int) ($adii * 100);
update_progress($anuj); //CALL FUNCTION
$anujstatus = "Download In Progress";
$downcomplete = "Download Finished";
anujstatus($anujstatus);
if ($anuj=='100') {
aditya(100);
anujstatus($downcomplete);
echo "<br><br><br><br> Download complete";
break 2;
}
if ($matches[0] == '"percentDone":1.0000')
$c++;
}
if ($c==count($id)) {
$check = false;
break 2;
}
sleep(5);
}
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Did you notice this?
By Kw3rLn in forum General DiscussionReplies: 5Last Post: 21st Jan 2012, 05:17 PM -
Fatal error: Call to undefined function xmlrpc_encode_request()
By sSKKa in forum WordpressReplies: 1Last Post: 9th Dec 2011, 10:07 AM -
Get Him To Notice You During Sex
By upnorth in forum General DiscussionReplies: 14Last Post: 15th Apr 2011, 09:50 PM -
Adding Domain Error in cPanel (Error from park wrapper:)
By Ryza in forum General DiscussionReplies: 0Last Post: 20th Feb 2011, 01:57 AM -
Digital Milennium Copyright Notice (UGC) :my first ever notice
By Dell23 in forum Legal IssuesReplies: 0Last Post: 2nd Jan 2010, 08:16 AM
themaPoster - post to forums and...
Version 5.38 released. Open older version (or...