只要用户名,密码不变
得到的ftp_stream不变

解决方案 »

  1.   

    include ("./search_ini.php");
      include ("./class.php");
    ###################################################
    #程序:              FTP搜索引擎主文件            #
    #文件:              search.php                   #
    #姓名:              网络骑士                     #
    #所用技术:           php&mysql                    #
    #版本:              v1.0                         #
    #联系:              [email protected] #
    ###################################################$ftp_stream=@ftp_connect($ftp_server,21);
    $login=@ftp_login($ftp_stream,"$username","$userpassword");
    if(!$login||!$ftp_stream){
                             echo "cannot connect to $ftp_server";
                             echo "try again";
                             }
    else
                             {
                             echo "<font color=".$color." size=+3 >connect to $ftp_server<br>CONGRATULATIONS!</font><br>";
                             }
                             $link=mysql_pconnect("$localhost","$datauser","$datapassword");
                             mysql_select_db("$database",$link);$this=ftp_pwd($ftp_stream);
    只要用户名和密码不变就行了。
      

  2.   

    Unable to find ftpbuf
    是什么意思???
      

  3.   

    我在第一个页面已经登陆了,我将ftp_stream的值传到第二个页面后,使用时每次使用时都会出现Unable to find ftpbuf错误