Closed anilskalyane closed 10 years ago
Creating a script to connect to an FTP server. That should be simple and trivial, right? The important code that they were using looked like:
$server_file = Ftp::connection()->getDirListing('product/catalog');
Unfortunately the code kept timing out at the ftp_nlist() command. After a few minutes the script would timeout and return a warning:
Warning: ftp_nlist() [function.ftp-nlist]: php_connect_nonb() failed: Operation now in progress (115)
It seems like something is wrong with your FTP configuration. May be this could help you: http://www.elitehosts.com/blog/php-ftp-passive-ftp-server-behind-nat-nightmare/
Creating a script to connect to an FTP server. That should be simple and trivial, right? The important code that they were using looked like:
$server_file = Ftp::connection()->getDirListing('product/catalog');
Unfortunately the code kept timing out at the ftp_nlist() command. After a few minutes the script would timeout and return a warning:
Warning: ftp_nlist() [function.ftp-nlist]: php_connect_nonb() failed: Operation now in progress (115)