title: Command to upload a file with WinSCP by FTP?
body: <p>I have an FTP server, but don't know the command to upload from a PHP form. I need a command to upload with WinSCP. My code so far is below:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  &lt;?php
  
  
  if(isset($_FILES["uploaded"]))
  {
  print_r($_FILES);
  if(move_uploaded_file($_FILES["uploaded"]["tmp_name"],"&lt;root&gt;/domains/sigaindia.com/public_html/reymend/".$_FILES["uploaded"]["name"])) 
  echo "FILE UPLOADED!";
  }
  else
  {
   print "&lt;form enctype='multipart/form-data' action='fup1.php' method='POST'&gt;";
   print "File:&lt;input name='uploaded' type='file'/&gt;&lt;input type='submit' value='Upload'/&gt;";
   print "&lt;/form&gt;";
  }
  
  ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>