'Euros (€) and British Pounds (£)',
''=>'USD - United States Dollars',
'GBP'=>'GBP - British Pounds',
'EUR'=>'EUR - Euros',
'AFA'=>'AFA - Afghanistan Afghanis',
'ALL'=>'ALL - Albania Leke',
'DZD'=>'DZD - Algeria Dinars',
'ARS'=>'ARS - Argentina Pesos',
'AUD'=>'AUD - Australia Dollars',
'BSD'=>'BSD - Bahamas Dollars',
'BBD'=>'BBD - Barbados Dollars',
'BMD'=>'BMD - Bermuda Dollars',
'BRL'=>'BRL - Brazil Reals',
'BGL'=>'BGL - Bulgaria Leva',
'CAD'=>'CAD - Canada Dollars',
'CLP'=>'CLP - Chile Pesos',
'CNY'=>'CNY - China Yuan Renminbi',
'COP'=>'COP - Colombia Pesos',
'XOF'=>'XOF - CFA Francs BCEAO',
'CRC'=>'CRC - Costa Rica Colones',
'CYP'=>'CYP - Cyprus Pounds',
'CZK'=>'CZK - Czech Republic Koruny',
'DKK'=>'DKK - Denmark Kroner',
'XCD'=>'XCD - East Caribbean Dollars',
'EGP'=>'EGP - Egypt Pounds',
'FJD'=>'FJD - Fiji Dollars',
'XAU'=>'XAU - Gold Ounces',
'HKD'=>'HKD - Hong Kong Dollars',
'HUF'=>'HUF - Hungary Forint',
'ISK'=>'ISK - Iceland Kronur',
'INR'=>'INR - India Rupees',
'IDR'=>'IDR - Indonesia Rupiahs',
'XDR'=>'XDR - IMF Special Drawing Rights',
'ILS'=>'ILS - Israel New Shekels',
'JMD'=>'JMD - Jamaica Dollars',
'JPY'=>'JPY - Japan Yen',
'JOD'=>'JOD - Jordan Dinars',
'KWD'=>'KWD - Kuwait Dinars',
'LBP'=>'LBP - Lebanon Pounds',
'MYR'=>'MYR - Malaysia Ringgits',
'MTL'=>'MTL - Malta Liri',
'MXN'=>'MXN - Mexico Pesos',
'MAD'=>'MAD - Morocco Dirhams',
'NZD'=>'NZD - New Zealand Dollars',
'NGN'=>'NGN - Nigeria Nairas',
'NOK'=>'NOK - Norway Kroner',
'PKR'=>'PKR - Pakistan Rupees',
'PHP'=>'PHP - Philippines Pesos',
'XPT'=>'XPT - Platinum Ounces',
'PLN'=>'PLN - Poland Zlotych',
'ROL'=>'ROL - Romania Lei',
'RUR'=>'RUR - Russia Rubles',
'SAR'=>'SAR - Saudi Arabia Riyals',
'XAG'=>'XAG - Silver Ounces',
'SGD'=>'SGD - Singapore Dollars',
'SKK'=>'SKK - Slovakia Koruny',
'ZAR'=>'ZAR - South Africa Rand',
'KRW'=>'KRW - South Korea Won',
'SDD'=>'SDD - Sudan Dinars',
'SEK'=>'SEK - Sweden Kronor',
'CHF'=>'CHF - Switzerland Francs',
'TWD'=>'TWD - Taiwan New Dollars',
'THB'=>'THB - Thailand Baht',
'TTD'=>'TTD - Trinidad and Tobago Dollars',
'TRL'=>'TRL - Turkey Liras',
'AED'=>'AED - United Arab Emirates Dirhams',
'VEB'=>'VEB - Venezuela Bolivares',
'VND'=>'VND - Vietnam Dong',
'ZMK'=>'ZMK - Zambia Kwacha');
//get stored rates
if($handle = fopen("rates.csv", "r")){
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
$rates[$data[0]]=$data[1];
$currdates[$data[0]]=$data[2];
}
fclose($handle);
}
// get estimated country from IP on first visit
//$ip=$REMOTE_ADDR;
//$ip="81.208.47.186"; // for testing
//if(!$set&&!$currency)if($handle2 = //@fopen("http://www.hostip.info/api/get.html?ip=".$ip, "rb")){
// $contents ='';
// while (!feof($handle2)) {
// $contents .= fread($handle2, 8192);
// }
// fclose($handle2);
// if(strchr($contents,"Country: ")) {
// $temp=strchr($contents,"Country: ");
// $temp=substr($temp,13,80);
// $temp=strchr($temp,"(");
// $country=substr($temp,1,2);
// }
// }
//if(!$set&&!$currency)if($handle = //@fopen("http://netgeo.caida.org/perl/netgeo.cgi?target=".$REMOTE_ADDR, //"rb")){
// $contents = '';
// while (!feof($handle)) {
// $contents .= fread($handle, 8192);
// }
// fclose($handle);
// if(strchr($contents,"COUNTRY: ")) {
// $temp=strchr($contents,"COUNTRY: ");
// $country= substr($temp,15,2);
// //echo "country is".$country."
\n";
// }
// }
// look for country's currency
if(!$set&&!$currency)foreach($CurrNames as $abbr => $temp){
if(substr($abbr,0,2)==$country)$currency=$abbr;
}
//echo "currency is".$currency."
\n";
setcookie("currency",$currency,time()+86400,"/",".guysoftware.com",0);
if ($currency)
{
$otherrate=$rates[$currency];
if($currdates[$currency]<($now-86400))if($handle = @fopen("http://www.swreg.org/cgi-bin/rate-calculator.cgi?currency=$currency", "rb")){
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
$otherrate=$contents;
$rates[$currency]=$otherrate;
$currdates[$currency]=time();
$dirtygrid=1;
}
}
$poundrate=$rates['GBP'];
if($currdates['GBP']<($now-86400))if($handle = @fopen("http://www.swreg.org/cgi-bin/rate-calculator.cgi?currency=GBP", "rb")){
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
$poundrate=$contents;
$rates['GBP']=$poundrate;
$currdates['GBP']=time();
$dirtygrid=1;
}
$eurorate=$rates['EUR'];
if($currdates['EUR']<($now-86400))if($handle = @fopen("http://www.swreg.org/cgi-bin/rate-calculator.cgi?currency=EUR", "rb")){
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
$eurorate=$contents;
$rates['EUR']=$eurorate;
$currdates['EUR']=time();
$dirtygrid=1;
}
function price($pricein){
$out=" (£" . number_format($GLOBALS['poundrate']*$pricein, 2) . ", €" .number_format($GLOBALS['eurorate']*$pricein, 2) . ")";
//$out2=" (".$GLOBALS['currency'] ." ". //number_format($GLOBALS['otherrate']*$pricein, 2) . ")";
//if($GLOBALS['otherrate']>0)return $out2;
//if($GLOBALS['poundrate']>0)return $out;
return$out;
}
?>
Buy ParseRat 2.0 now.
![]() |
We use the Atlantic Coast Soft Shop (SWREG) secure server to handle our online transactions. SWREG accepts Mastercard, Eurocard, VISA, Delta, JCB, Switch, Solo, Discover, American Express, Diner's Club, UK cheque, US check, Eurocheque, Postcheque, International Money Order, Bank wire and PayPal. |
The email you receive giving the download location for the registered version also includes a personal activation code which you may enter into an evaluation version to convert it to paid-up. This may be of value if you live in a country where downloads are expensive.