cannot contact Yahoo Finance host

polar-bear - April 9, 2007 - 08:03
Project:Currency Exchange
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I got following error and failed to get any exchange rate information.

    * warning: file_get_contents(): URL file-access is disabled in the server configuration in /home/kseauk.org/public_html/sig-p/modules/currency/currency_api/currency_api.module on line 126.
    * warning: file_get_contents(http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=GBPKRW=X): failed to open stream: no suitable wrapper could be found in /home/kseauk.org/public_html/sig-p/modules/currency/currency_api/currency_api.module on line 126.

currency exchange error: currency: cannot contact Yahoo Finance host

#1

kbahey - April 9, 2007 - 15:14
Priority:critical» normal
Status:active» closed

This is a problem with your hosting server.

They do not allow PHP to open socket connections to remote hosts.

So, it is not a module problem.

#2

nuno.alexandre - April 17, 2007 - 14:39

Hi,
any suggestion how to solve this if the machine its hosted at home ?

#3

kbahey - April 17, 2007 - 15:03

It depends on the Linux distro (or Windows?) that you are using.

Check this page http://www.php.net/file_get_contents and that page http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen

#4

muthu22 - November 24, 2008 - 20:29

Hi,
This is not a server problem now server update is going on after that it will work without any problem.This depending upon some software's like java, Linux... Thanks for sharing. Cheers..........
------------------------
Muthu

MLS

 
 

Drupal is a registered trademark of Dries Buytaert.