Bug #13913 Updated: Empty strings on "nlist" and "rawlist"

From: Date: Wed, 07 Nov 2001 22:04:09 +0000
Subject: Bug #13913 Updated: Empty strings on "nlist" and "rawlist"
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-69776@lists.php.net to get a copy of this message
ID: 13913 Updated by: cardinal Reported By: phpbug@osiris.xs4all.nl Old Status: Open Status: Feedback Bug Type: FTP related Operating System: Windows XP final PHP Version: 4.0.6 New Comment: You're probably trying to get a listing in active mode, and being rejected. Set the connection to passive mode with ftp_pasv() before you try to get the listing. Previous Comments: ------------------------------------------------------------------------ [2001-11-02 17:55:32] phpbug@osiris.xs4all.nl Thank you for hearing me :) The problem is that whatever i try there is no data in any nlist or rawlist command i issue on my ftp server. I started out with IIS 5.1 (standard winXP) and ended with bulletproof FTP 1.25, both not giving any listings.. Some sample code: -------------- $dir=ftp_pwd($conn_id); $rawlist = ftp_rawlist($conn_id,$dir); $nlist = ftp_nlist($conn_id,$dir); if ($rawlist) { echo "<BR>Spawned value for nlist was ".$nlist; } else { echo "<BR>empty as usual.."; } if ($rawlist) { echo "<BR>Spawned value for rawlist was ".$rawlist; } else { echo "<BR>empty as usual.."; } echo "<BR>"; print_r($rawlist); print_r($nlist); -------------- where there: - was a connection in the 1st place ($conn_id) - i encountered not a single error message - i used the "if .. else" to prove my wrong - i received no data in my string I have seen various bug reports resembling what i've expierenced but none of them got answered because they all stopped giving information which ended in: "can't reproduce the error." I hope you (the brave volunteer) could help me.. :) Thanxx ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13913&edit=1

« previous php.dev (#69776) next »