title: Loading a remote xml page with file_get_contents()
body: <p>I have seen some questions similar to this on the internet, none with an answer.</p>
  
  <p>I want to return the source of a remote XML page into a string. The remote XML page, for the purposes of this question, is:</p>
  
  <pre><code>http://www.test.com/foo.xml
  </code></pre>
  
  <p>In a regular webbrowser, I can view the page and the source is an XML document. When I use <code>file_get_contents('http://www.test.com/foo.xml')</code>, however, it returns a string with the corresponding URL.</p>
  
  <p>Is there to retrieve the XML component? I don't care if it uses file_get_contents or not, just something that will work.</p>