<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Mirror update</title>
</head>
<body>
<h1>Mirror update</h1>
<?php
$host='xxxx';
$user='xxx';
$password='xxxx';

$conn=ftp_connect($host,2121);
if(!$conn)
{
echo'Error,could not connect to ftp server...:(';
exit;
}
else{
echo "连接上";
}
$result=ftp_login($conn,$user,$password);
echo '<br />';
echo $result;    //i want to see what result is...haha
echo '<br />';
if(!$result)
{
echo' Either your id or password is wrong!!..';
exit;
}
$file='123.txt';
$remote_file='/';
if (ftp_put($conn,$remote_file,$file,FTP_ASCII)) {
  echo "successfully uploaded $file\n";

else {
  echo "There was a problem while uploading $file\n";
 }
    ftp_close($conn);
?>
</body>
</html>
上传老出错误:连接上
1Warning: ftp_put() [function.ftp-put]: Only client IP address allowed for PORT command. in F:\coreamp_20110401\htdocs\ftp.php on line 34
There was a problem while uploading 123.txt 
这是什么情况,谢谢