News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPSnippets.info:
Convert currencies using PHP, Google and cURL
July 19, 2010 @ 08:16:30

From the PHPSnippets.info site there's a recent post about using a conversion tool from Google to convert currency values from one type to another.

Just a few people know that Google have a built-in currencies calculator. (Just type 100$ in euros in Google search box if you want to test it) This calculator works very well, so what about using PHP and cURL and get this functionnality in your own web app?

The script makes a cURL request over to the Google API's calculator feature and passes in the amount to convert and the codes for the "to" and "from" (like USA, CAD or EUR). You'll need cURL support in your PHP installation to use the script, but it wouldn't be all that difficult to modify it to use a basic socket connection too.

1 comment voice your opinion now!
convert currency google curl tutorial snippet


DevX.com:
Base Concepts of Internationalization in PHP
August 13, 2008 @ 09:37:12

The DevX website has recently posted this tutorial - a look at simple internationalization for your website.

If you develop Web applications that have an international target audience, then you have to take internationalization into account'"a process that includes avoiding date/time or currency confusions and delivering all text pertinent to the user interface in the user's preferred language. Applications that can grow international traffic and improve revenue must respect their clients' needs.

They use the I18N PEAR package to handle most of the hard work and include the howto on grabbing the package, the structure and how to use it to get a country name from a code, work with the translation of numbers, currency and changing up date/time strings.

0 comments voice your opinion now!
i18n internationalization tutorial concept currency datetime countrycode


Pádraic Brady's Blog:
Zend_Service_Currency Proposal
September 22, 2006 @ 13:27:39

Pádraic Brady, looking ahead to the work he will be doing over the next few months, is proposing on his blog about a new Zend Framework component - Zend_Service_Currency.

I did a quick check on what PHP classes are available for the purpose. There's really not a whole lot out there. There's a PEAR class along the lines I need, but it's released under the PHP License and, not to be too argumentative, I prefer non-PEAR solutions where the end-user may have no access to update PEAR.

So since the project is planned to use the Zend Framework, I shot off a mail to the Framework's fw-general mailing list to see if it would be a worthwhile contribution.

He sees that someone else had already opened a proposal for the same idea and decided to join with that group to work up the module. He also links to his original proposal and gives a brief overview of the goals of the package.

0 comments voice your opinion now!
zend framework component proposal currency service zend framework component proposal currency service



Community Events





Don't see your event here?
Let us know!


podcast api package list laravel community opinion introduction language deployment release framework interview symfony install library tips update series zendserver

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework