CodeIgniter Forums
FTP class permission denied with ftp_put - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: FTP class permission denied with ftp_put (/showthread.php?tid=31304)



FTP class permission denied with ftp_put - El Forum - 06-14-2010

[eluser]Bendude[/eluser]
Hello all,

I am having a few problems when uploading a file with the same name as a file that already exists on the server.

I am trying to find a nice way to catch this in my code so I can handle the error and rename the file I'm uploading. I'm aware I could check if the file existed using CURL but I figured someone else maybe able to offer a more elegant and simple solution to my problem.

Here is the error for reference.

Code:
Severity: Warning  --&gt; ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: Permission denied C:\wamp\www\site\system\libraries\Ftp.php 261

Thanks
Ben