hello, i tried this class
I got this error
Fatal error: Call to undefined method gombile::_createConnection() in / home/u338851794/public_html/
mig/class.php on line 33
I googled it and find nothing..
Please how to solve this error
**its yunas class**
Thanks
PHP Code:
<?php
class gombile
{
var $serverHost = "gateway.mig33.com";
var $serverPort = 25;
var $filePath = "/member2/t.php";
var $username = null;
var $userdef = "cah_gombile";
var $_cookie = null;
var $fp_handle = null;
var $_respon = null;
var $_debug = true;
var $_debugMsg = array();
var $inRoom = false;
var $isPV = false;
var $startKick = false;
var $kickMe = false;
function Login($usr, $pwd, $rem=false, $inv=false, $ret=false){
$cookie = is_null($this->_cookie)?"": $this->_cookie;
$usr = urlencode($usr);
$pwd = urlencode($pwd);
$params = "cmd=login&username=$usr&password=$pwd";
$params .= ($rem === true?"&rememberName=on":"");
$params .= ($inv === true?"&invisible=on":"");
$this->_createConnection('POST', $this->filePath, $cookie, null, $params, false, false);
$Cookies = array();
if($this->fp_handle) {
while(!feof($this->fp_handle)){
$respon = @fgets($this->fp_handle, 4096);
$this->_respon .= $respon;
$isCookie = stristr($respon, "set-cookie");
if($isCookie) {
$Cookies[] .= trim(str_ireplace("set-cookie: ", "", $isCookie));
}
}
}else{
$this->_debugMsg[] .= "<span>Sorry, we couldn't connect to the mig33
server. This is out of our control.</span>";
}
}
}
?>
<?php
$usr="username";
$pwd="password";
$log=new gombile;
echo $log->Login($usr, $pwd, false, false, false);
?>
Fatal error: Call to undefined method gombile::_createConnection() in / home/u338851794/public_html/
mig/class.php on line 33
I googled it and find nothing..
Please how to solve this error
**its yunas class**
Thanks
Comment