Welcome Guest, Not a member yet? Register   Sign In
FTP Class issues
#1

[eluser]ggoforth[/eluser]
Hello All,

I fear this is a router issue, and not an FTP class issue, but I thought I would give it a shot. Ok, I've got router port 21 forwarded to the machine with the FTP server on it. I want to use code igniter ftp class to upload a file to this machine. So I specify:

Code:
$this->load->library('ftp');
            
$config['hostname'] = 'myserver.com';
$config['username'] = 'myusername';
$config['password'] = 'mypass';
$config['port']     = 21;
$config['debug']    = TRUE;
            
$this->ftp->connect($config);
            
$this->ftp->upload('./docs/testme.txt', '/');
            
$this->ftp->close();


When this runs, I get no output on the screen. No files are transfered, and I have no idea where the problem lies. I have opened the ports on my firewall, and I can connect to the FTP server from on the network (192.168.x.x), just not from my "hostname" specified above.

FYI, the hostname is set up with www.noip.com. Should I be using an actual IP? Shouldn't the above send all requests to myserver.com to my IP anyway?

Thanks to any one that can offer any help.

Greg




Theme © iAndrew 2016 - Forum software by © MyBB