#25143 [Opn->Fbk]: both ftp_nlist() and ftp_rawlist() do not work!
| From: | derick@php.net | Date: | Tue, 19 Aug 2003 06:36:01 +0000 |
| Subject: | #25143 [Opn->Fbk]: both ftp_nlist() and ftp_rawlist() do not work! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46173@lists.php.net to get a copy of this message | ||
ID: 25143
Updated by: derick@php.net
Reported By: zhuzhi at scxxt dot com dot cn
-Status: Open
+Status: Feedback
Bug Type: FTP related
Operating System: linux 7.3
PHP Version: 4.3.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-08-19 01:34:28] zhuzhi at scxxt dot com dot cn
Description:
------------
I just tried to FTP some files to a linux server with a php file. When
I tried this in local machine(W2K + apache 1.3.27 + php4.2.3), all were
right, but when I upload my scripts to the web server(RH linux 7.3 +
apache 2.0.49 + php 4.3.2) and tried it again, the scripts did nothing.
I tried to add "echo" in the scripts and I found ftp_rawlist() and
ftp_nlist() did not work at all. But all were right in my local
machine!
Reproduce code:
---------------
the following is the code
<?
$conn=ftp_connect($server,$port);
ftp_login($conn,$name,$passwd);
$rawlist=array();
$nlist=array();
$rawlist=ftp_rawlist($conn,"/");
$nlist=ftp_nlist($conn,"/");
foreach($rawlist as $item) {
echo $item;
}
?>
Expected result:
----------------
so please give me some ideas of this problem ASAP,thanks. Because I
need this urgently!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25143&edit=1