my system is win98+Apache 1.3.12 +php4.02
and this is a program which has been successful
<?
$host="127.0.0.1";
$ftp_stream = ftp_connect($host);
?>
and I have another program which is not successful
it is :
<?
$host="127.0.0.1";
$ftp_stream = ftp_connect($host);
$ftp_if = ftp_login($ftp_stream, "", "");
if($ftp_if) echo "loging is ok !";
else
{
echo "login is fuliy";
return 0;
}
?>
After running it , IE show me "Warning: Unable to find ftpbuf 0 in c:\apache\htdocs\ftptest\ftp.php on line 4
login is fuliy"
and I have get the means of function ftp_login()
it means:
boolean ftp_login(int ftp_stream, string username, string password)
so I doubt that the pararmeters of "username" and "password" is wrong.
How to get the correct parameters!