Hi all,
I have a problem with ftp_nlist.
After
$ftp=ftp_connect($server);
ftp_login($ftp, $user, $password);
@ftp_chdir($ftp, $dir);
$contents=ftp_nlist($ftp, ".");
the variable $contents is not an array.
count($contents) has the value 1, but the variable $contents is empty.
I have tried the passive mode, but the problem is the same.
NOTE:
By using the commands
ftp "server"
cd "dir"
dir
in the shell, I get a list of all files and afterwards
closing data connection
This ftp-comment must be the reason for my problems.
Any idea???
Thanks for help.
Denise