Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Need help in Live currency conversion script
Old 12-30-2009, 03:25 AM Need help in Live currency conversion script
Novice Talker

Posts: 6
Name: umapathi
Trades: 0
I am working on a shopping cart website project, which is still in development phase.
I want to display the rates of the products in INR(Indian Rupees) and USD(US Dollars).
Can someone help me with a php code for doing the live currency conversion.
I want to know how can I collect the live currency values in a php variable to do the conversion.

For example: If I go to the link http://www.xe.com/ucc/convert.cgi?From= ... R&Amount=1
Here I can get the live rate for US dollars to INR conversion. As It is shown in the picture below.
a.JPG (15.96 KiB) Not viewed yet


In the picture it is also shown that 1 INR = 0.0214083 USD (This is the live current value).
Is there any way I can collect the live current value of the currency in a variable?
Please help me in resolving this issue, or please point me to the right direction.
umapathi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-30-2009, 04:09 AM Re: Need help in Live currency conversion script
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And did you miss reading this:
Quote:
Important: Pursuant to our terms of use, You may not parse, import, or redistribute currency rate data from this service. If you need currency rate data, we can provide you with an automated feed through our XE.com Data Feed Service.
On their website??
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-30-2009, 08:34 AM Re: Need help in Live currency conversion script
Novice Talker

Posts: 6
Name: umapathi
Trades: 0
Quote:
Originally Posted by chrishirst View Post
And did you miss reading this:

On their website??



Thanks for your help, and I am sorry if you misunderstood me. I was just trying to show one example website, on which the live currency conversion is happening. There are many such websites, which give the current currency value.

I just wanted to know, how to collect or get the value of a currency in a variable. For example: Suppose I create following variables:

$INR is a php variable which is stroes the value in Indian Rupees.
$USD is a php variable which stores the value in US Dollars.

( 1 INR = 0.0214083 USD) This is the current conversion value that is taken from any xyz website.

So

$INR = 0.0214083 * $USD;

So I just want to know, that from any website (which display the currency conversion rates) how can I get a live current value in a php variable, so that I can use it on my website for displaying the product prices in both INR and USD.

Please point me to a right direction, or let me know any such website from where I can collect the live data in a php variable; and I also want to know how to do that.
umapathi is offline
Reply With Quote
View Public Profile
 
Old 12-30-2009, 08:50 AM Re: Need help in Live currency conversion script
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I understand what you want to do HOWEVER the ToS of Xe.com DO NOT ALLOW YOU TO SCRAPE THE DATA FROM THEIR SITE.

You have two choices as detailed on this page
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Need help in Live currency conversion script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20250 seconds with 12 queries