title: How can I fix "Permission Denied" on ftp_put() in php?
body: <p>I'm getting permission denied messages when I try to upload a file:</p>
  
  <pre><code>Warning: ftp_put() [function.ftp-put]: Can't open that file: Permission denied in /home/kirby/public_html/members/upload_advanced.php on line 48
  </code></pre>
  
  <p>The file already exists, how do I enable ftp_put() to overwrite it.</p>
  
  <p>Also, here's the upload code:</p>
  
  <pre><code>$upload = ftp_put($conn_id, "www/logos/web_".$row[username].".jpg",
                                    "../logos/web_" . $row[username] . ".jpg",  FTP_BINARY);
  </code></pre>