title: php move_uploaded_file not creating file
body: <p>I am having a problem with <code>move_uploaded_file()</code>.</p>
  
  <p>I am trying to upload a image path to a database, which is working perfectly and everything is being uploaded and stored into the database correctly. </p>
  
  <p>However, for some reason the <code>move_uploaded_file</code> is not working at all, it does not produce the file in the directory where I want it to, in fact it doesn't produce any file at all.</p>
  
  <p>The file uploaded in the form has a name of <code>leftfileToUpload</code> and this is the current code I am using.</p>
  
  <pre><code> $filetemp = $_FILES['leftfileToUpload']['tmp_name'];
   $filename = $_FILES['leftfileToUpload']['name'];
   $filetype = $_FILES['leftfileToUpload']['type'];
   $filepath = "business-ads/".$filename;
  </code></pre>
  
  <p>This is the code for moving the uploaded file.</p>
  
  <pre><code>move_uploaded_file($filetemp, $filepath);
  </code></pre>
  
  <p>Thanks in advance</p>