title: Parse XML file from url using php
body: <p>I want to parse xml file from another server.</p>
  
  <pre><code>&lt;?php
  
      $xml = simplexml_load_file('http://example_page.com/api/test.xml');
  
  ?&gt;
  </code></pre>
  
  <p>And this code work only if this file is on this same server as page, but I have got xml file on another server. </p>
  
  <p>Warning from webpage:</p>
  
  <pre><code>Warning: simplexml_load_file(http://example_page.ugu.pl/api/test.xml) [function.simplexml-load-file]: failed to open stream: Connection refused in /virtual/z/y/example_page.ugu.pl/index.php on line 14
  
  Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://example_page.com/api/test.xml" in /virtual/z/y/example_page.ugu.ugu.pl/index.php on line 14
  </code></pre>
  
  <p>P.S. allow_url_fopen is still on.</p>