oanda fx service can timeout - here's some advice
spaceman <[email protected]> 1 Sep 2003 08:42:02 -0000
| Newsgroups | gmane.comp.web.oscommerce.tips |
|---|---|
| Message-ID | <2ab0aa10d7978a360cdf6ed29823b13c@osCommerce-Forums> |
This message was sent from: Tips and Tricks
http://forums.oscommerce.com/viewtopic.php?p=222552#222552
----------------------------------------------------------------
Hi All,
I've noticed that the oanda currency exchange rate lookup service times out if you feed it some more obscure currency codes (eg. TMM, or UGX) that do exist on the xe service.
If this happens to you, my advice is:
1. ini_set("default_socket_timeout",2) // stops the file function after 2 seconds
2. modify the quote_oanda_currency function to return false if the file function is stopped by the above
[/code]