CI_ftp library |
Question. I already tried looking on the codeigniter forums. I am having trouble using the CI_ftp class.
I called the library as the example. $this->load->library('ftp'); I set all the configs settings to the ftp i am trying to get in a $config array . $config['hostname'] = 'address'; $config['username'] = 'user'; $config['password'] = 'password'; $config['debug'] = TRUE; but when i run: $this->ftp->connect($config); The page crash, and i don't think any connections was made and through the browser development tools , i checked the Network tab and it receives a 500 internal sever Error.
if there any invalid credentials issue then you might get error response.
you should check httpd error_log file, so you can find exact page crash issue.
(05-11-2015, 11:32 PM)techbat Wrote: if there any invalid credentials issue then you might get error response. Thanks For replying, I solved the issues by doing some backtracking and notice that the @ftp_connect would not from the core library. I didnt touch or change anything but seeing that it didn't work, i end up finding that i need to add the php extension "FTP". After i did that it worked fined.
I was missing the php extension ftp, that stop the @ftp_connect to not work.
|
Welcome Guest, Not a member yet? Register Sign In |