title: Server can not accept argument. FTP upload in shell
body: <pre><code>    $local = 'WP_Inv.csv';
      $remote = 'WP_Inv.csv';
      $user = "User861";
      $pass = "topsecret";
      $host = 'ftp.server.com';
      $port = '21';
      $timeout = '90';
      $type = FTP_ASCII;
  
      $conn_id = ftp_connect($host,$port,$timeout);
  
      $login = ftp_login($conn_id, $user, $pass);
  
               ftp_put($conn_id, $remote, $local, $type);
  </code></pre>
  
  <p>returning the following error when ran from shell:</p>
  
  <p>The very last line is showing an error, any help would be great I am pulling my hair out!</p>
  
  <p>PHP Warning:  ftp_put(): Server cannot accept argument. </p>
  
  <p>(Yes I close my connection later in the code)</p>