title: file_get_contents(): failed to open stream: No such file or directory
body: <p>I'm making a multiple images upload system in php.
  This is what I have:</p>
  
  <p><strong>PHP</strong></p>
  
  <pre><code>foreach($_FILES['files']['tmp_name'] as $key =&gt; $name_tmp)
  {
          $name = $_FILES['files']['name'][$key];
          $tmp_name = $_FILES['files']['tmp_name'][$key];
          $type = $_FILES['files']['type'][$key];
          $size = $_FILES['files']['size'][$key];
          $image = addslashes(file_get_contents($name));
  
          $query2 = mysql_query("INSERT INTO afbeeldingen(naam, afbeelding) values ('$name', '$image')");
  }
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;input type="file" name="files[]" multiple&gt;
  </code></pre>
  
  <p>Now if I add one or more files via the input form, I get the following error:</p>
  
  <pre><code>Warning: file_get_contents(download (1).jpg): failed to open stream: No such file or directory in D:\Apps\Xampp\htdocs\el_gusto\toevoegen_handler.php on line 578
  </code></pre>
  
  <p>What I'm I doing wrong?
  I'm only inserting the name &amp; image for now.</p>
  
  <p>Thanks in advance and taking time to read this!</p>
  
  <p>Kind Regards</p>