php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26638 ftp_nlist()/ftp_rawlist() not returning files or directories
Submitted: 2003-12-16 05:33 UTC Modified: 2003-12-16 11:28 UTC
From: mnares at cox dot net Assigned:
Status: Not a bug Package: FTP related
PHP Version: 4.3.4 OS: Windows XP Professional SP 1
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:
MUST BE VALID
Solve the problem:
38 - 9 = ?
Subscribe to this entry?

 
 [2003-12-16 05:33 UTC] mnares at cox dot net
Description:
------------
This bug has been labelled as closed, but it is still present.

I am trying to employ ftp_nlist() and ftp_rawlist() to retrieve a listing of files on my FTP server.

Nothing is returned.

Reproduce code:
---------------
info is private :-)

$ftp_server = '65.61.159.xx';
$ftp_user_name = 'xxxxxxxxx';
$ftp_user_pass = 'xxxxxxxxx';
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
$mode = ftp_pasv($conn_id, TRUE);

$file_list = ftp_rawlist($conn_id,'/');

Expected result:
----------------
A listing of the files on the FTP server

Actual result:
--------------
Nothing is returned.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-16 11:28 UTC] pollita@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

When you do add your comments to the preexisting bug report, please include the name/version of the FTP server you are querying against.

Also try querying against a public anonymous FTP server for comparison.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC