$fromDate = date('m/d/y', strtotime("-6 MONTH"));
$toDate = date('m/d/y');
+ $total = count($currency);
+
foreach ($currency as $k => $c){
+
+ echo "\nProcessing Currency : $c ($k / $total)";
+
$params = array(
'lang' => 'en',
'result' => 1,
$o = clone($curr);
}
- $curr->setForm(array(
+ $curr->setFrom(array(
'rate' => $rate,
'from' => date('Y-m-d H:i:s', strtotime($fromDate)),
'to' => date('Y-m-d H:i:s', strtotime($toDate))
}
+ $this->jok("DONE");
+
}
function curl($url, $request = array(), $method = 'GET')