title: How to debug move_uploaded_file() in PHP
body: <p>move_uploaded_file() won't work for me anymore, it was working fine and just stopped out of nowhere. Is there a way for me to check why it's not working anymore? Here's what I currently have, but it only returns TRUE or FALSE.</p>
  
  <pre><code>$status = move_uploaded_file($tempFile, $targetFile);
  if($status) {
    echo 'its good';
  } else {
    echo 'it failed';
  }
  </code></pre>
  
  <p>I know the path is 100% correct and the directory is CHMOD 755. Is there anything I might be doing wrong?</p>