If anybody needs it, here goes....
PHP Code:
<?php
function quote_xe_currency($to, $from = 'EUR') {
$page = file('http://www.xe.net/ucc/convert.cgi?Amount=1&From=' . $from . '&To=' . $to);
$match = array();
preg_match('/[0-9.]+\s*' . $from . '\s*=\s*([0-9.]+)\s*' . $to . '/', implode('', $page), $match);
if (sizeof($match) > 0) {
return $match[1];
} else {
return false;
}
}
print quote_xe_currency('USD', 'EUR');
?>