Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Current cost in your local currency
If you're selling internationally on line, it's a nice gesture to your customers to tell them roughly what things cost in their local currency, before you charge their credit card in pounds, dollars, euros, or whatever currency you use yourself. Tables of current exchange rates are easy enough to find, but they change all the time and your site can rapidly become misleading.

The European Central Bank provides a daily set of conversion rates to and from the Euro on their web site, and those are mid-rates so that you can easily convert from (say) pounds to Euros, then on to Rand, fairly accurately. The data is available as an XML feed, and can be very easily picked up in a PHP web page:
$stuff = file("http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml");
We have a sample PHP script in operation on our web site

PHP's ability to read data from a URL as easily as it can read data from a file has a very wide range of other uses too, but you need to take care of issues such as copyright, robot exclusion and the traffic you'll generate before you write such pages. In the case of the ECB page, the page is stated to be publicly available information, and live scripts that are heavily used should be written to cache a copy of the data locally from your script as it only changes once every 24 hours.
(written 2004-09-16 07:11:46)

 
Back to
Business is the predominant user of Tomcat, Perl and Tcl
Previous and next
or
Horse's mouth home
Forward to
Gym and swimming - Melksham Blue Pool

Some other Articles
PHP and natural sorting
Drive the drive
International awareness
Gym and swimming - Melksham Blue Pool
Current cost in your local currency
Business is the predominant user of Tomcat, Perl and Tcl
PHP - onwards and upwards
Effective fundraising
Near and far security
CGI v mod_perl
1694 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho