title: file_get_contents() is not doing so
body: <p>I have the following</p>
  
  <pre><code>$name = basename($_FILES['the_file']['name']);
  $size = $_FILES['the_file']['size'];
  $contents = $_FILES['the_file']['tmp_name'];
  
  if($size &lt;= 5242880 &amp;&amp; is_uploaded_file($_FILES['the_file']['tmp_name'])) {
      $picture = file_get_contents($contents);
      echo $picture;
  }
  </code></pre>
  
  <p>but nothing is echoed out. Am I doing something incorrect here?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I changed my code:</p>
  
  <pre><code>$name = basename($_FILES['the_file']['name']);
  $size = $_FILES['the_file']['size'];
  $contents = $_FILES['the_file']['tmp_name'];
  
  if($size &lt;= 5242880) {
      $picture = file_get_contents($contents);
      echo $picture;
  }
  </code></pre>
  
  <p>I removed the <code>is_uploaded_file()</code> condition and now it says</p>
  
  <p><code>Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/*************.php on line 13</code>
  (I blurred out the path)</p>
  
  <p>which means that the file isn't being uploaded. Any ideas?</p>