php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20845 ftp_rawlist, ftp_nlist still not working
Submitted: 2002-12-05 17:07 UTC Modified: 2002-12-15 00:11 UTC
From: PaulMenard1 at yahoo dot com Assigned:
Status: Closed Package: IIS related
PHP Version: 4CVS-2002-12-05 (dev) OS: W2k Server, Prof
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: PaulMenard1 at yahoo dot com
New email:
PHP Version: OS:

 

 [2002-12-05 17:07 UTC] PaulMenard1 at yahoo dot com
In the Bug #20536 ftp_nlist, ftp_rawlist returns nothing 

I have upgraded my PHP to the most current. Following from 'php.exe -v'

PHP 4.4.0-dev (cli) (built: Dec 4 2002 20:18:55)
Zend Engine v1.4.0

I have a very simple script that was taken from the help pages on ftp_rawlist().

On my server connnecting to 'localhost' or '127.0.0.1' or the actual local DNS name STILL does not result in anything being provided. I can connect to remote Win/*nix servers under anonymous and specific users and the function works great. 

After reading various posting and answers about the bug being fixed and in CSV from 11/30 I have waited and waited until Dec 5 in hopes I could finally get this working. I can change the Web server from IIS to Apache sorry. 

Does anyone have answers to this?

Paul

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-05 19:25 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2002-12-06 22:20 UTC] PaulMenard1 at yahoo dot com
Okay. More information.

I have the followinf script running under W2K Advanced Server, IIS5 


$conn = ftp_connect("localhost");
ftp_login($conn, "ftptest", "ftptest");
$nlist = ftp_nlist($conn, "");
$rawlist = ftp_rawlist($conn, "");

echo "<pre>";
echo "Values from ftp_nlist()<BR>";
print_r($nlist);
echo "Values from ftp_rawlist()<BR>";
print_r($rawlist);
echo "</pre>";

The result of this PHP script execution is the output of nothing. Under this account's home folder there are 3 sub-folders 'Inbound', 'Outbound' and 'Archive'. Also there are 3 files '1.txt', '2.txt' and '3.txt'. 

If I change the 'localhost' reference in the connect statement the script does report the expected results. Actually any connection to a remote server either of type Windows or Unix seems to work. 

What does not work is the connection to the reference 'localhost', '127.0.0.1' etc.

Also, I have tried executing this script under IIS and from a command prompt. The same empty results are reported. Under IIS I have only attempted using the 'php-cgi.exe' or CGI version. I have not attempted the isapi version just because I am unsure of stability for other aspects of my applications.

Enough?
 [2002-12-07 15:25 UTC] iliaa@php.net
What FTP server are you running on your computer?
 [2002-12-08 20:54 UTC] PaulMenard1 at yahoo dot com
IIS 5.0 which is standard on W2K Advanced Server.
 [2002-12-09 09:27 UTC] iliaa@php.net
Can you manually login to the FTP server running on your server using window's native ftp client, 'ftp' and see if you can execute NLST & LIST commands?
 [2002-12-09 20:48 UTC] PaulMenard1 at yahoo dot com
Yes I can. This has always worked.

Since my initial email I have downloaded the PHP 4.3 RC2 from the main PHP.net page. After fighting with the CGI version, I finally setup the ISAPI version and now the ftp_rawlist and nlist seem to work when going against 'localhost' or '127.0.0.1'.
 [2002-12-14 23:50 UTC] iliaa@php.net
Could you confirm that the problem still exists with PHP 4.3.0RC3 when using cgi or cli sapi?
 [2002-12-15 00:07 UTC] PaulMenard1 at yahoo dot com
I upgraded to the latest snapshot (see below). I use the ISAPI version and this does work. I then ran into some issues with the current version of phpMySQLAdmin web interface. But I upgraded and all is well. The FTP functions seem to work great for local and remote systems.



C:\>php -v
PHP 4.4.0-dev (cli) (built: Dec  5 2002 14:17:46)
Copyright (c) 1997-2002 The PHP Group
Zend Engine v2.0.0-alpha3, Copyright (c) 1998-2002 Zend Technologies
 [2002-12-15 00:11 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

User idicates that the problem had been resolved.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 11:01:30 2024 UTC