Forum Moderators: coopster

Message Too Old, No Replies

JAVA(not script) in conjunction with PHP?

         

dmmh

1:58 pm on Jan 20, 2005 (gmt 0)

10+ Year Member



I need to internationalise currencies on my website and the proper and most efficient method would be to query a database for current conversion rates and base calcultions upon those values, which is exactly what I want to do.

A Google search comes up with some nice contenders, from which the easiest to implement (XE.com's datafeed) is also rather expensive.
However, I found a free JAVA program which is free and released under the GPL and does what I need too, however,
I have never used Java and am at a total loss here?

[geosoft.no...]

See the chapter 'internationalisation' and look for currency.

How can I get data from that? How do I 'query' the Java program to get a certain currency's current conversion rate?

xrob

3:22 pm on Jan 20, 2005 (gmt 0)

10+ Year Member



Sorry if this isnt what you want but that JAVA application gets its data from here [fx.sauder.ubc.ca]. I didnt really look through the code to see exactly what it did, nor did i even run the program, either way you can just use PHP to get this data and do what ever you want with it.

use fopen [uk.php.net] there are examples on there for usage.

jatar_k

5:47 pm on Jan 20, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



one question, and please take no offense as none is intended.

why would you look to java to do this?

what about using a webservice

try a search for currency conversion wsdl [google.com]

or parse a file from a bank to get them, no need for java whatsoever unless there is something you aren't mentioning.

dmmh

9:06 pm on Jan 20, 2005 (gmt 0)

10+ Year Member



I dont, I just couldnt find much more on Google that was free. didnnt come up with any of those results in the last link, so thanks. I just need something I could get the data from online, realtime :)