Code: Select all
ftp_connect($host,21);
ftp_ssl_connect($host,22);Server: Ubuntu 9.04
FTP Server: VSFTPD
vsftpd.conf: Everything is enabled. (I know this is ringing a church bell, but this is an internal testing server).
PHP: OpenSSL is enabled
PHP: FTP is enabled
When I type:
Code: Select all
ftp 127.0.0.1When I connect to the server from another machine using SFTP, I get a successful connection.
I have looked at the fsocketopen approach, but it is tedious! And, with the applications developed already that need further development and match the production's environment, I need to connect to this testing server through an FTP connection.
I have considered taking out vsftpd and replacing it with a less secure ftp server but it seems too intriguing, and considering our environment and the IT director, I won't be surprised if he decided to buff up the production's ftp server to vsftpd...this would then be my nightmare....
Any other easier suggestions on how to FTP to this server through PHP would be much appreciated...
Thanks,
T