Welcome Guest, Not a member yet? Register   Sign In
CI_ftp library
#1
Brick 

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.
Reply
#2

(This post was last modified: 05-11-2015, 11:35 PM by techbat.)

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.
Passionate PHP Programmer & Codeigniter Developer :- Always happy to help you!
Reply
#3

(05-11-2015, 11:32 PM)techbat Wrote: 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.

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. 
Reply
#4

I was missing the php extension ftp, that stop the @ftp_connect to not work.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB