title: How to read an image with PHP?
body: <p>i know that</p>
  
  <pre><code>$localfile = $_FILES['media']['tmp_name'];
  </code></pre>
  
  <p>will get the image given that the POST method was used. I am trying to read an image which is in the same directory as my code. How do i read it and assign it to a variable like the one above? </p>