title: Downloading a file via ftp using php
body: <p>I'm using ftp_put() to download a file from another server. Everything (connection etc.) working but it wont download.</p>
  
  <pre><code>    ftp_chdir($conn_id, $destination_file); 
      $upload = ftp_put($conn_id, $name, $source_file, FTP_BINARY);
  </code></pre>
  
  <p>above is my code and its giving error "Can't change directory to"...
  when i out <code>ftp_put</code> without 'ftp_chdir' it didn't work so i used <code>ftp_chdir</code>. but still not working. <code>$destination_file</code> equal to a path and <code>$name</code> equal to a file. Please give me an idea what a i doing wrong?
  p.s even $upload is returning true. But i can't find the file anywhere. </p>