title: PHP ftp_put() - "Cannot STOR."
body: <p>I try to upload a file through PHP's ftp_put function, like so:</p>
  
  <pre><code>ftp_put($this-&gt;conn_id, $rempath, $locpath, $mode);
  </code></pre>
  
  <p>However I get the error "Cannot STOR." Nothing more. The FTP-connection is OK since I can download files using the same settings and ftp_get(). The script should be OK as well since it works fine on my local setup but not on my public server.</p>
  
  <p>What can I try to make it work? I Googled but found nothing of worth.</p>