title: i think move uploaded file is not working even though he can find if the file is existed
body: <p>If i choose in the same folder of my target directory it said file exist but when i choose in different folder it said success but there`s no file uploaded in that folder here is my code. i get it in google</p>
  
  <pre><code>    &lt;?php
  
  if (($_FILES['my_file']['name']!="")){
  // Where the file is going to be stored
   $target_dir = "/home/cidinc1802/Pictures/";
   $file = $_FILES['my_file']['name'];
   $path = pathinfo($file);
   $filename = $path['filename'];
   $ext = $path['extension'];
   $temp_name = $_FILES['my_file']['tmp_name'];
   $path_filename_ext = $target_dir.$filename.".".$ext;
  
  if (file_exists($path_filename_ext)) {
   echo "Sorry, file already exists.";
   }else{
   move_uploaded_file($temp_name,$path_filename_ext);
   echo "Congratulations! File Uploaded Successfully.";
   }
  
  }
   ?&gt; 
  &lt;form name="form" method="post" action="fortesting.php" enctype="multipart/form-data" &gt;
  &lt;input type="file" name="my_file" /&gt;&lt;br /&gt;&lt;br /&gt;
  &lt;input type="submit" name="submit" value="Upload"/&gt;
  &lt;/form&gt;
  </code></pre>