title: PHP ftp_put fails
body: <p>I upload XML file through FTP:</p>
  
  <pre><code>$ftp = "ftp";
  $username = "username";
  $pwd = "password";
  $filename = $_FILES[$xyz][$abc];
  $tmp = $_FILES['file']['tmp_name'];
  $destination = "/Content/EnquiryXML ";
  
  $connect = ftp_connect($ftp)or die("Unable to connect to host");
  ftp_login($connect,$username,$pwd)or die("Authorization Failed");
  echo "Connected!&lt;br/&gt;";              
  
  if(!$filename)
  {
      echo"Please select a file";
  }
  
  else
  {
      ftp_put($connect,$destination.'/'.$filename,$tmp,FTP_ASCII)or die("Unable to upload");
      echo"File successfully uploaded to FTP";
  }
  </code></pre>
  
  <p>I want to send the XML file created using <code>DOMDocument</code> to a FTP server but I am not able.</p>
  
  <p>The <code>ftp_put</code> returns false.</p>