File_get_contents(); from external URL not working

apps

#1

Hi!

I’ve recently installed a script on my account which fetches the contents of an xml file from an external url (yahoo weather), but the script only creates empty files.
Is the functions somehow disabled on DH? Or at least the ability to connect to outside urls?
The script works on my VPS and on my business hosting account which I’ve got with another host.

I’m using PHP 5.1.2 for my Domain here at DH.

Any help would be appreciated. Thanks!


#2

Take a look in the ‘how to remedy it’ here:

Good luck.


#3

Thanks for the pointer!

A few quick changes and it now uses CURL and works.