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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mnares at cox dot net
New email:
PHP Version: OS:

 

 [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-2022 The PHP Group
All rights reserved.
Last updated: Mon May 23 02:05:44 2022 UTC