[eluser]FinalFrag[/eluser]
I'm trying to make a function that mirrors all the files from the website on which the application is running to another webserver. But there seems to be a problem with the FTP class. I have the following code:
Code:
function something() {
$this->load->library('ftp');
$config['hostname'] = 'ftp.mywebsite.be';
$config['username'] = 'my_username';
$config['password'] = 'my_password';
$config['port'] = 21;
$config['passive'] = true;
$config['debug'] = true;
$this->ftp->connect($config);
echo 'show me this and exit...';
exit();
}
Obviously, it should show me the message, but all it does is give me a blank page... Not even an error...
Can anyone give me a hand on this?