Hi all,
I'm trying to solve a problem in php.
Like many others, "ftp_connect" is not working for me, even though php was compiled with --enable-ftp etc.
I believe the problem is the hosting company's firewall, and I wanted to attempt to make my ftp connection the way it was decribed at php.net, ie:
// Connect to firewall
$conn_id = ftp_connect("firewall.yournet.com");
// Open a session to an external ftp site
$login_result = ftp_login ($conn_id, "userid@externalhost.com", "password");
However, when I attempted to connect to the firewall, it still did not work.
I thought that perhaps I should attempt to connect to some non-default port (not 21) on the firewall... but the hosting company apparently thought it would be a security risk to tell me which port I should use to route an ftp connection out through the firewall, so I was never able to try that.
Since I am unable to transfer the domain to a new host, does someone have some sample code of how to create an ftp connection WITHOUT using ftp_connect? Is it possible?
Thanks for your helpful replies.