Forum Moderators: coopster

Message Too Old, No Replies

Simple Exchang rate box on my website

         

Pasqualis

3:23 pm on Nov 6, 2005 (gmt 0)

10+ Year Member



Some time ago we used a simple exchange rate script on our website that looked like this:

1 EURO = 30 CZK (czech crowns)

To get this to work we used the following piece of code:

<?php
require("XPath.class.php");

$xp = new XPath();

$xp->importFromFile("http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml");

$EUR_CZK_RATE = $xp->getAttributes("//Cube[@currency='CZK']","rate");

echo($EUR_CZK_RATE);

?>

And XPath.class.php from sourceforge.net/projects/phpxpath/

Now the above code doesn't seem to work anymore and we would love to get it working again.

Is there anybody that could help us out here?
(I am no php guru) :)

NomikOS

4:02 pm on Nov 6, 2005 (gmt 0)

10+ Year Member



fault of $xp->importFromFile("http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml");
(fault between quotes of course)

you must go and restudy what they do now. look for news or updates or bugs fixed, etc.