#34164 [Bgs]: Cannot view the directory list by using ftp_rawlist function
| From: | thomas188 at hotmail dot com | Date: | Sat, 20 Aug 2005 15:35:46 +0000 |
| Subject: | #34164 [Bgs]: Cannot view the directory list by using ftp_rawlist function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83828@lists.php.net to get a copy of this message | ||
ID: 34164
User updated by: thomas188 at hotmail dot com
Reported By: thomas188 at hotmail dot com
Status: Bogus
Bug Type: FTP related
Operating System: Linux
PHP Version: 4.4.0
New Comment:
But there is no problem when I change to use ftp_nlist function instead
of. And it is success to get into the path "/tmp/[test]" from other FTP
server, for example, "WS_FTP". so I believe that my server is OK for
FTP browsing with "[" character inside.
Previous Comments:
------------------------------------------------------------------------
[2005-08-17 10:44:51] tony2001@php.net
Obviously your ftp-server fails when this character appear in the
path.
Try using any ftp client and you'll see the same.
Not PHP problem.
------------------------------------------------------------------------
[2005-08-17 07:30:36] thomas188 at hotmail dot com
Description:
------------
When I use the ftp_rawlist, the output is empty when the path contains
"[". For example, "/tmp/[test]". But others is OK. Please help !
Reproduce code:
---------------
// set up basic connection
$conn_id = ftp_connect("x.x.x.x");
// login with username and password
$login_result = ftp_login($conn_id, "username", "password");
// get contents of the current directory
$contents = ftp_rawlist($conn_id, "/tmp/[test]");
//output
var_dump($contents);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34164&edit=1