Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: bot problems

  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post bot problems

    ok i have a problem w/ some php script i wrote a program for a bot and this si the Bmain.php

    PHP Code:
    require("./db.obj.php");
    $msn=new MSN;
    $db=new DBMySQL;


    //load configs
    $conf=ReadConf();
    #necessary configs    
        
    $msn->_username $conf['username'];
        
    $msn->_password $conf['password'];
        
    $msn->_nick $conf['nick'];
        
    $msn->_displaypic $conf['displaypic'];
        
    $msn->_phpbin $conf['phpbin'];
    #optional configs
        
    $msn->_msnip $conf['msnip'];
        
    $msn->_msnport $conf['msnport'];
        
    $msn->_msngrversion $conf['msngrversion'];
        
    $msn->_debug $conf['debug'];
        
    $msn->_botcommand $conf['botcommand'];
    #database configs
        
    $db->_Host $conf['dbhost'];
        
    $db->_User $conf['dbuser'];
        
    $db->_Pass $conf['dbpass'];
        
    $db->_DBName $conf['dbname'];
    //end of config

    //stats
    $db->Connect();
    $db->Execute("UPDATE tb_blobsy_stats SET TotalRecvMsg=(TotalRecvMsg+SessionRecvMsg),TotalSentMsg=(TotalSentMsg+SessionSentMsg), SessionRecvMsg=0, SessionSentMsg=0, UptimeTotal=(UptimeTotal+(TIME_TO_SEC(Uptime)-TIME_TO_SEC(StartedTime))),Uptime=NOW(),StartedTime=NOW()");
    $db->Disconnect();

    //start main code
    $msn->Login();
    while(!
    feof($msn->_socket)) $msn->ProcessCommands(); 
    //end main code

    exit();
    ?> 
    and i keep getting this error but i have no idea where it's at this what i get
    PHP Code:
    ': $tmpstart=(strpos($html,"from-PP='")+9); $tmpend=(strpos($html,"',",$tmpstart)-$tmpstart); $response=trim(substr($html,$tmpstart,$tmpend)); 
    unset($html); unset($fp); unset($junk); $dastatus=$response; break; default: $dastatus='
    redir'; } } } while ($dastatus=='redir); return $dastatus; } } ?> Successful
    SENT : VER 0 MSNP9 CVR0 
    Last edited by j2freak; 05-15-2004 at 02:36 PM.

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't get it, what's the error? I read something about Successful sent...

    There's no PHP error message there, you may want to include that if one is present.

    Sadiq.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •