johnlanglois
04-14-2009, 10:44 PM
I have a client who wants to automate the sending of a a file from his Bluehost website to another website.
I have SSH setup on his site.
I am trying manually to execute the FTP inside the PHP script, but will set it up as a CRON job when it finally works.
At present, the PHP command "ftp_connect" fails to connect to the remote server via port 21.
Should I use a different port? The login, password, etc. all work because we are able to move the files from my pc to the website via FileZilla.
Thanks.
I have SSH setup on his site.
I am trying manually to execute the FTP inside the PHP script, but will set it up as a CRON job when it finally works.
At present, the PHP command "ftp_connect" fails to connect to the remote server via port 21.
Should I use a different port? The login, password, etc. all work because we are able to move the files from my pc to the website via FileZilla.
Thanks.