title: PHP - failed to open stream: Permission denied
body: <p>I am having trouble uploading files to my website.</p>
  
  <p>the code:</p>
  
  <pre><code>$tmpFilePath = $_FILES['upload']['tmp_name'][$i];
    //filepath
    if ($tmpFilePath != ""){
  
      //Setup the new file path
      $newFilePath = "./uploads/$keuze/" . $_FILES['upload']['name'][$i];
  
      //Upload the file into the temp dir
      if(move_uploaded_file($tmpFilePath, $newFilePath)) {
  
         //unfinished
  
      }
  </code></pre>
  
  <p>this worked perfect with xampp, but now that the website is online, i get the following error: 
  Warning: move_uploaded_file(./uploads/barbeque 2012/endless.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/arnoudi26/domains/creemersa.be/public_html/upload.php on line 36</p>
  
  <p>I have set the permissions to read/write to the whole map and still not working.</p>