title: PHP get image dimensions from file_get_contents("php://input")
body: <p>Due to the upload script I can not obtain the uploaded file by $_FILE variable, thefore I have to make do with </p>
  
  <pre><code>$file = file_get_contents("php://input")
  </code></pre>
  
  <p>I want to get the dimensions if it's an image, for that purpose, I would use getimageresize() but getimageresize() only take a file not a string. So that's my problem. How do i solve this?</p>