Jump to content

ftp problems


Liquid Fire

Recommended Posts

ok from some reason I can use a class to connect to ftp whe i put:

ftp_connect("ftp.server.com");

work fine in my php file but if i have:

$ftp = new CFTP("ftp.server.com");
$ftp->FTPConnect();

where FTPConnect() is:

{
    ftp_connect($this->_host_name);
}

I get a timeout after 30secs error.  _host_name is the same as "ftp.server.com", why would it not work when it is in a class?

EDIT: I found my problem
Link to comment
https://forums.phpfreaks.com/topic/26356-ftp-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.