title: move_uploaded_file() showing successful but not working
body: <p>I am using php to upload and move a file to a desired location...
  while using move_uploaded_file, it says that the file has moved successfully but the file does not show up in the directory.
  THE HTML AND PHP CODE IS BELOW...</p>
  
  <pre><code> &lt;form action="test_upload.php" method="POST" enctype="multipart/form-data"&gt;
  &lt;fieldset&gt;
  &lt;label for="test_pic"&gt;Testing Picture&lt;/label&gt;
  &lt;input type="file" name="test_pic" size="30" /&gt;&lt;br /&gt;
  &lt;/fieldset&gt;
  
  &lt;fieldset&gt;
  
  &lt;input type="submit" value="submit" /&gt;
  
  &lt;/fieldset&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>THe php goes like : </p>
  
  <pre><code>    &lt;?php
  
  
  $image_fieldname = "test_pic";
  $upload_dir = "/vidit";
  $display_message ='none';
  
  if(move_uploaded_file($_FILES[$image_fieldname]['tmp_name'],$upload_dir) &amp;&amp; is_writable($upload_dir)){
      $display_message = "file moved successfully";
      }
      else{
          $display_message = " STILL DID NOT MOVE";
              }
  
  
  
  ?&gt;
  </code></pre>
  
  <p>when i run this page and upload a legitimate file - the test_upload.php echoes file uploaded successfully. but when i head on to the folder "vidit" in the root of the web page. the folder is empty...</p>
  
  <p>I am using wamp server . </p>