ID: 40062 Comment by: shaun at starmultimedia dot biz Reported By: dzoukr at dzoukr dot cz Status: No Feedback Bug Type: FTP related Operating System: Windows XP PHP Version: 5.2.0 New Comment:
I had this problem too, but then discovered that a call to ftp_pasv($ftpConn, true) is required before calling ftp_nlist() or similar. HTH Previous Comments: ------------------------------------------------------------------------ [2007-11-05 18:48:45] sales at excavargoo dot com My last version was confusing even to me. ----------------------------------------- November 5, 2007 I have the same problem. I have a PHP program that uses FTP functions internally. I installed the program on two separate servers (A & B). The program acts as a client application. The server (C) contains the directory of files I want to move to A & B periodically. The operation between A and C is successful. The ftp_nlist statement works fine. It provides a list of files. The operation between B and C fails. When it gets to ftp_nlist (and I tried ftp_rawlist) no file list is returned. A false status is returned. Any suggestions to try? I really don't want to part with my password to give you a live demo. I'll try any code you provide. ------------------------------------------------------------------------ [2007-11-05 18:07:10] sales at excavargoo dot com November 5, 2007 I have the same problem. I tried moving a working PHP program using FTP from one "client" server (let's call it A) to another (lets call it B). The same "server" server (lets call it C) is in place. When it gets to ftp_nlist (and I tried ftp_rawlist) nothing is returned. So, A using ftp_nlist returns a list of files from C. B using using ftp_nlist returns false (and no file list is returned). Any suggestions to try? I really don't want to part with my password to give you a live demo. I'll try any code you provide. ------------------------------------------------------------------------ [2007-01-17 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-01-09 18:20:06] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip it works here. Please try the snapshot. if it doesn't work, you need to give us the hostname you are connecting to (as it might be some server specific issue). ------------------------------------------------------------------------ [2007-01-08 12:34:14] dzoukr at dzoukr dot cz Description: ------------ It seems, that ftp functions ftp_nlist() and ftp_rawlist() does not work correctly in PHP version 5.2.0. They returns false all the time, althought working directory is correct and directory is not empty. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40062&edit=1