Bug #16057 Updated: ftp_nlist() and ftp_rawlist() return nothing
From: sniper@php.net Date: Thu, 11 Jul 2002 02:56:29 +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-13795@lists.php.net to get a copy of this message
ID: 16057
Updated by: sniper@php.net
Reported By: ryan@wonko.com
-Status: Open
+Status: Feedback
Bug Type: FTP related
Operating System: Windows 2000 Advanced Server
PHP Version: 4.1.2
New Comment:
Please try the '-latest' snapshot from here:
http://snaps.php.net/win32/
Make sure first that the date/time is above 10-Jul-2002 19:25
Previous Comments:
------------------------------------------------------------------------
[2002-06-20 01:56:07] helga@prickel-pit.de
Works sometimes for me.
Here the configurations i tried:
All with PHP 4.1.1
Win 2000 / IIS 6: Works with script ftp_raw2n_list (see the online
dokumentation for this thing).
Win Me / Xitami 2.46: Works fine
Win XP / Xitami 2.46: Works fine
Win XP / Apache : Works fine
Win 2000 / IIS 5 : Nothing works ...
seems to me like being a IIS Problem
------------------------------------------------------------------------
[2002-06-18 19:33:34] sniper@php.net
No idea why this was set to duplicate..reopened.
------------------------------------------------------------------------
[2002-06-12 13:40:48] John.Smith@company.com
try this:
if($list) {
echo "list downloaded!!<br>";
}else{
echo "no list downloaded!!<br>";
}
and you'll see it's not the data.
<-- ORIGINAL MESSAGE: --->
[7 May 3:19pm] The-Skull@Gmx.de
[...]
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-05-23 16:16:10] jemontagna@velocom.com.ar
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");
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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 (#13795) | next » |
|---|