<p>I am trying to read an XML-file from another server. However the the company that's hosting me seems to have turned of the file_get_contents function from retrieving files for files from other servers (and their support is not very bright and it takes forever for them to answer). So I need a work around in some way.</p>

<p>This is my current code</p>

<pre><code> $url =  urldecode( $object_list_url );
 $xmlstr = file_get_contents ( $url );
 $obj = new SimpleXMLElement ( $xmlstr, LIBXML_NOCDATA );
</code></pre>

The ini var you're referring to is
```
allow_url_fopen
```
. To check, run this script:
```
```
var_dump(ini_get('allow_url_fopen'));
```
```
Ask your host to turn that ini value on (if it's disabled - it's on by default).
You should not be able to access any remote url without that ini setting on.
Also an idea if they won't could be to try
```
copy
```
ing the file to your server. I expect all filesystem functions will be covered by that ini setting but it's always worth a try.