Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
From: jemontagna at velocom dot com dot ar Date: Thu, 23 May 2002 20:16:11 +0000 Subject: Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-8351@lists.php.net to get a copy of this message
ID: 16057
Updated by: jemontagna@velocom.com.ar
Reported By: ryan@wonko.com
Status: Duplicate
Bug Type: FTP related
Operating System: Windows 2000 Advanced Server
PHP Version: 4.1.2
New Comment:
i tied with this script and NOT WORK ... I hope someday, someone fix it
and send me the ni .dll file....
function Conn($host,$port,$username,$password){
if($Conectar = ftp_connect ($host,$port)){
$login = @ftp_login ($Conectar, $username, $password);
if($login){
echo "login correct";
$dir=ftp_pwd($Conectar);
$lsita=ftp_nlist($Conectar, "$dir");
for($i==0;$i<count($lista);$i++){
print $lista[$i], "<br>";
}
}else{
print "login failed";
}
}else{
print "host dir error";
}
}
Conn("aasdasd",5555,"asdasdasd","sdasdasd");
Previous Comments:
------------------------------------------------------------------------
[2002-05-07 15:19:45] The-Skull@Gmx.de
$list = ftp_nlist($connection, $dir);
echo "list downloaded!!<br>"; flush();
do{
echo $list[$i], ""; $i++;
}while($list[$i]);
------------------------------------------------
Win2k Service Pack 2,
Apache 2.0.28
PHP 4.2.0.
This works every 5th Try Perfectly! If I comment the do-part out, it
works everytime, it doesn't hang!
So I guess it's the data that nlist returns, not the command itself.
------------------------------------------------------------------------
[2002-04-30 22:05:26] slgill2@yahoo.com
Ok, I guess I was wrong... I see what your saying it takes forever to
load, and if you refresh the browser, it doesn't disconnect from the
FTP. at least it didn't for me..
------------------------------------------------------------------------
[2002-04-30 21:01:20] slgill2@yahoo.com
it works for me... using php 4.2.0 win xp apache 1.something
thing I don't like with nlist is it returns the dirs and files in alpha
order instead of dirs first then files in alpha
------------------------------------------------------------------------
[2002-04-26 22:10:43] tint@au.ru
php 4.2.0
w2k as
apache 1.3.24
same thing :(
will it be ever fixed?
------------------------------------------------------------------------
[2002-04-02 13:39:32] sander@php.net
Dupe of 13913
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16057
--
Edit this bug report at http://bugs.php.net/?id=16057&edit=1
Thread (46 messages)
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Fbk->NoF]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [NoF->Opn]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Opn->Csd]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Csd]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Csd->Bgs]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
- #16057 [Com]: ftp_nlist() and ftp_rawlist() return nothing
| « previous | php.bugs (#8351) | next » |
|---|