i got a url like this one http://somedomain.com/frieventexport.php
and the content of this url is a plain XML structure if I check out the source-code of the site:<
file_get_contents()
is usually disabled if this is shared hosting, if not you can set allow_url_fopen
in php.ini (however beware of the security risks). You can check the setting of this using php_info()
or var_dump(ini_get('allow_url_fopen'))
to show if it's allowed or not.
If you cannot do the above, you can use CURL to fetch external content