FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP currency converter with XML feed
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP currency converter with XML feed [message #172509 is a reply to message #172507] Mon, 21 February 2011 13:47 Go to previous messageGo to previous message
astral is currently offline  astral
Messages: 14
Registered: February 2011
Karma:
Junior Member
""Álvaro G. Vicario"" <alvaro(dot)NOSPAMTHANX(at)demogracia(dot)com(dot)invalid> wrote in
message news:ijtp4q$kkc$1(at)news(dot)eternal-september(dot)org...
> El 21/02/2011 14:11, astral escribió/wrote:
>> I'm having trouble to modify this code(currency converter, a combination
>> of javascript and php, which uses an XML feed from http://www.ecb.int/
>> to get up to date exchange rates) to work with
>> http://www.bank.lv/vk/xml.xml Not worked for me. Any help will be
>> appreciated.
>
> Just a personal thought... You drop a couple hundred lines of code and
> don't even bother explaining what is failing... It looks like you are not
> looking for help or advise but for someone who'll do the job for you for
> free.
>
>
> --
> -- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
> -- Mi sitio sobre programación web: http://borrame.com
> -- Mi web de humor satinado: http://www.demogracia.com
> --
-----------------

no, absolutely. This is small enough code. What not work? After I replaced
feed with http://www.bank.lv/vk/xml.xml , and changed other strings as
follows:

$xml = simplexml_load_file('http://www.bank.lv/vk/xml.xml');

$xmlString = $xml->asXML();
$pos = stripos($xmlString,"<Currency=");
$xmlString = substr($xmlString,$pos);
$pos2 = stripos($xmlString,"</CRates>");
$xmlString = substr($xmlString,0,$pos2);
$arr = explode("<CRates ",$xmlString);


saved as html page when tested it - show just form with drop down selectors
with no values inside, and "convert" action not work also.

Thanks.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Code Stops Working
Next Topic: about memory usage with application written with php and mysql
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 07:32:51 GMT 2024

Total time taken to generate the page: 0.05126 seconds