|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2003-08-28 09:53 UTC] ates at isikun dot edu dot tr
 Description: ------------ when i use $array=ftp_nlist(exact file name) // for example ftp_nlist(/http/fopen.php) it returns /http/fopen.php/fopen.php as 1st element of array so it must return /http/fopen.php .. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 10:00:02 2025 UTC | 
Correction: When I "reproduced" this bug, I was talking to IIS's FTP service directly using the "LIST" command (equivalent of ftp_rawlist) which does return correct data. However, using the "NLST" command (equivalent of ftp_nlist) the data returned by IIS is "/http/fopen.php\fopen.php" which is precisely what PHP turns around and provides back. This makes it Not-A-PHP-Bug, but rather a MS problem. That said I don't want to leave you in the lurch, so here's a workaround: function IISisBROKEN_ftp_nlist($res, $dir) { if (ftp_size($res, $dir) >= 0) { return $dir; } return ftp_nlist($res, $dir); }