title: Loading XML-file from URL
body: <p>I want to read a XML-file from an url and then retrieve the information from my XML-file.</p>
  
  <pre><code>&lt;?php
    if( $_POST["name"])
    {
      ini_set('allow_url_fopen ','ON');
      $completeurl = "http://localhost:8983/solr/select?q=".$_POST['name'];
      $xml = simplexml_load_file(file_get_contents($completeurl));  
      exit();
    }
  ?&gt;
  &lt;html&gt;
  &lt;body&gt;
    &lt;form action="&lt;?php $_PHP_SELF ?&gt;" method="POST"&gt;
    Search: &lt;input type="text" name="name" /&gt;
    &lt;input type="submit" /&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I write some input to the form, it clearly manages to retrieve something, but I also get a message like this:</p>
  
  <pre><code>Warning: simplexml_load_file() [function.simplexml-load-file]: 
  I/O warning : failed to load external entity "&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  &lt;response&gt; &lt;lst name="responseHeader"&gt;&lt;int name="sta....
  </code></pre>
  
  <p>How can I extract the xml-info from the url?</p>