title: PHP move_uploaded_file() error?
body: <p>I using following code and it is successfully uploading files on my local machine. It is showing "Successfully uploaded" on my local machine.</p>
  
  <pre><code>// Upload file
  $moved = move_uploaded_file($_FILES["file"]["tmp_name"], "images/" . "myFile.txt" );
  
  if( $moved ) {
    echo "Successfully uploaded";         
  } else {
    echo "Not uploaded";
  }
  </code></pre>
  
  <p>But when I used this code on my online server then it is not uploading file and just showing message "Not uploaded".</p>
  
  <p>How can I know that what is the problem and how can I get the actual problem to display to the user ?</p>