Hi!
Can you help me on this coding ?
<?
// set up basic connection
$ftp_server = \"myserver.com\";
$ftp_user_name = \"xxx\";
$ftp_user_pass = \"paswd\";
$conn_id = ftp_connect(\"$ftp_server\");
// login with username and password
$login_result = ftp_login($conn_id, \"$ftp_user_name\", \"$ftp_user_pass\");
// check connection
if ((!$conn_id) || (!$login_result)) {
echo \"Ftp connection has failed!\";
echo \"Attempted to connect to $ftp_server for user \";
die;
} else {
echo \"Connected to $ftp_server, for user \";
}
$dir=\"some_path\";
$list=Array();
$list=ftp_nlist($connid, \"$dir\");
$i=0;
do
{
echo $list[$i], \"
\"; $i++;
}while($list[$i]);
?>
After I load this php3 file, it shows:
Connected to myserver.com, for user
Warning: Unable to find ftpbuf 0 in /home/path/ftp.php3 on line 25
Line 25 are :
$list=ftp_nlist($connid, \"$dir\");