|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34164 Cannot view the directory list by using ftp_rawlist function
Submitted: 2005-08-17 07:30 UTC Modified: 2005-08-20 17:35 UTC
From: thomas188 at hotmail dot com Assigned:
Status: Not a bug Package: FTP related
PHP Version: 4.4.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
4 + 41 = ?
Subscribe to this entry?

 [2005-08-17 07:30 UTC] thomas188 at hotmail dot com
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]");



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-17 10:44 UTC]
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-20 17:35 UTC] thomas188 at hotmail dot com
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.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat May 28 13:05:44 2022 UTC