错在那里?
<?
define("ftpsite","homeftp.etang.com");
//连接ftp站点
if(!($ftps=@ftp_connect(ftpsite))){
echo "Ftp host connect fail!";
exit;
};
//登陆ftp站点
if(!(@ftp_login($ftps,"username","password")))
{
ftp_quit($ftps);
echo "connect fail!";
exit;
};
ftp_chdir($ftps,"/upload/");
if ($upfilename="")
{
$upfilename=strrchr($upfile,'\')
};
echo $upfilename;
if (ftp_put($ftps,$upfilename,$upfile,FTP_BINARY))
{
echo "file up right";
}
else
{
echo "file up error";
ftp_delete($ftps,$upfilename);
};
if (ftp_quit($ftps))
{
echo "quit right";
}
else
{
echo "not quit now,quit fail!";
};
?>
总是提示最后一句解析错误,为什么,错在那里?