Welcome Guest, Not a member yet? Register   Sign In
FTP class permission denied with ftp_put
#1

[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




Theme © iAndrew 2016 - Forum software by © MyBB