ID: 13913
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: FTP related
Operating System: Windows XP final
PHP Version: 4.0.6
New Comment:
I'm seeing this exact same bug using PHP 4.1.1 on Windows 2000 Advanced
Server with IIS 5.0. This is a major showstopper for me -- I *really*
need FTP functionality, and now I'm screwed.
Previous Comments:
------------------------------------------------------------------------
[2002-03-01 03:58:26] [EMAIL PROTECTED]
I have been trying the same with Windows 2000 Server IIS 5.0 and the
result is the same, an empty array, i can not make a for(){} or
foreach(){} or something similar because the matrix is always empty,
the passive mode doesn�t change anything.
All ftp functions works correctly except ftp_nlist() and ftp_rawlist()
why?
I hope something can help me please.Thx.
------------------------------------------------------------------------
[2001-11-08 15:17:29] [EMAIL PROTECTED]
Update:
I just validated my FTP's logs and found out that:
- The user logs in correctly
- The passive request arrived and was set correctly
- There was no list command anywhere to be found
It's just not arriving.. (?)
------------------------------------------------------------------------
[2001-11-08 02:13:45] [EMAIL PROTECTED]
After adding the following code after the connection and before the
listings,
// Initiate passive mode
if (ftp_pasv($conn_id, true))
{ echo "Initiated passive mode"; }
else { echo "Could not initiated passive mode"; }
The result stays the exact same..
What i forgot to mention: i can switch directorys etc. so
the connection seems to work, but the "LIST" command never reaches the
ftp server (checked).
------------------------------------------------------------------------
[2001-11-07 17:04:08] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[2001-11-02 17:55:32] [EMAIL PROTECTED]
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