This means that ftp_connect() fails and returns false. Is your port 21? If not, specify another one in the second parameter of ftp_connect(). Does your server maybe have another FTP subdomain such as ftp.your-domain.com ?
Think what else could be the reason that the script cannot connect to your host.
Compare the values you use here with the values of your FTP client which you usually use to transfer your files.
|