title: Simplexml_load_string does work with a direct link to XML file, but won't work with file_get_contents('php://input')
body: <p>Searched a lot for this on StackOverflow and Google but can't seem to find an answer to this specific situation</p>
  
  <p>I'm working with a client that sends me an XML file via PHP POST and this is the code I use:</p>
  
  <pre><code>$xml = file_get_contents('php://input');
  $xmlStripped = stripslashes($xml);
  $xmlContent = simplexml_load_string($xmlStripped);
  print_r($xmlContent);
  </code></pre>
  
  <p>For testing I also uploaded the XML file directly to my server and did it like this:</p>
  
  <pre><code>$xml = file_get_contents('http://www.site.com/linktoxml.xml');
  $xmlStripped = stripslashes($xml);
  $xmlContent = simplexml_load_string($xmlStripped);
  print_r($xmlContent);
  </code></pre>
  
  <p>And then it works fine, it prints out the XML as an object.</p>
  
  <p>The form I use to upload is like this:</p>
  
  <pre><code>&lt;form action="http://app.site.com/upload" method="POST"&gt;
  &lt;input type="file" name="file" id="file "&gt;
  &lt;input type="submit" value="upload"&gt;
  &lt;/form&gt;
  </code></pre>