note 19551 rejected from function.ftp-nlist by alindeman
| From: | alindeman@php.net | Date: | Sun, 03 Mar 2002 19:14:00 +0000 |
| Subject: | note 19551 rejected from function.ftp-nlist by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-27299@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