title: Wamp Server : Path of uploaded files
body: <p>Hi I have a WAMP server where some files are upload into an specific path. </p>
  
  <blockquote>
    <p>C:\wamp\www\upload\</p>
  </blockquote>
  
  <p>in this case. However could it be possible to upload these files into for example </p>
  
  <blockquote>
    <p>D:\Documents\User\upload ? </p>
  </blockquote>
  
  <p><code>Upload.php</code> specifies the path where the files are stored but I haven´t the way of changing to another path.</p>
  
  <p>Thanks in advance,
  Katherine</p>
  
  <p>Edit: upload.php</p>
  
  <p>Here is the upload_file.php</p>
  
  <pre><code>&lt;?php
  $target_path  = "c:\\";
  
  $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
  if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
   echo "El fichero ".  basename( $_FILES['uploadedfile']['name'])." ha sido enviado";
  } else{
   echo "Hubo un error, inténtalo de nuevo!";
  }
  ?&gt;
  </code></pre>