Welcome Guest, Not a member yet? Register   Sign In
ftp class not working.
#1

[eluser]vivid_haze[/eluser]
Hi Guys,

I have been trying to use CI's FTP class to handle some files. I have configured the ftp config data correctly (I can confirm it is connecting), and I have set all file permissions to 777... but nothing! I can't move files, create directories, delete files, anything! I just get errors 'Unable to create the directory you have specified.' etc.

Additionally, I am able to create directories and manipulate files using traditional php methods (mkdir()) etc. But whenever I try to use any CI FTP commands using $this->ftp->xxx();
I get an error!!

I have run out of things I can think of that might be the problem.

Any ideas?

All suggestions welcome, thanks.
#2

[eluser]theprodigy[/eluser]
does your server require SFTP or SSL FTP? If so, that may be your problem. Per the docs, only standard ftp (non-secure) is supported.

Other than that, I may have to take a look at your code to see what may be other reasons.
#3

[eluser]vivid_haze[/eluser]
Hi theprodigy,
Thanks for your reply, I've actually got this working now though. I was using an incorrect file path, duh!




Theme © iAndrew 2016 - Forum software by © MyBB