j2freak
05-15-2004, 02:33 PM
ok i have a problem w/ some php script i wrote a program for a bot and this si the Bmain.php
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
': $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
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
': $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