note 19551 added to function.ftp-nlist
| From: | artemis_mendrinos at yahoo dot com | Date: | Sun, 03 Mar 2002 09:09:03 +0000 |
| Subject: | note 19551 added to function.ftp-nlist | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27291@lists.php.net to get a copy of this message | ||
$dir = ftp_pwd($ftp_stream);
echo $dir;
$list=Array();
$list=ftp_nlist($ftp_stream, $dir);
if(!$list)
echo 'Error! : ftp_nlist';
$i=0;
do{
echo $list[$i], ""; $i++;
}while($list[$i]);
-----------------------------
I can see my location, the ftp_pwd returns '/'
but I get an empty array from the
ftp_nlist(same with ftp_rawlist)
I have PHP 4.1.1
--
http://www.php.net/manual/en/function.ftp-nlist.php
http://master.php.net/manage/user-notes.php?action=edit+19551
http://master.php.net/manage/user-notes.php?action=delete+19551
http://master.php.net/manage/user-notes.php?action=reject+19551