From: [EMAIL PROTECTED] Operating system: Windows 2000 Professional PHP version: 4.1.1 PHP Bug Type: FTP related Bug description: ftp_connect() unable to connect to Internet IPs
I have a script which automatically transfers files to another single machine via FTP accross the Internet. The script was working fine on our old test server which was Win98 running Omnihttpd and PHP 4.0.6. However on the new server running Win2k Pro, IIS, and PHP 4.1.1 it causes problems. Connection fails and trying to use the connection results in a "Unable to find ftpbuf 0" error. I have written a simple test script and have come to the following conclusions: * ftp_connect() to localhost is fine * ftp_connect() to local network IPs is fine * ftp_connect() to Internet IPs doesn't work Using FTP from the command line on the same 2k box to the same address works all of the time regardless of the destination IP. $ip="ftp.geocities.com"; $conn_id = ftp_connect($ip); print $ip."<br><br>"; if($conn_id) { print "Connected OK"; } else { print "Unable to connect"; } -- Edit bug report at http://bugs.php.net/?id=15383&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15383&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15383&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15383&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15383&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15383&r=support Expected behavior: http://bugs.php.net/fix.php?id=15383&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15383&r=notenoughinfo -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php