Change the address, you can call Oicq Oh!
# ICQ Pager v0.0.1
# Brazil r0x.
# thanks goes to Upalele, Meganha, Neo, Figui, Lunetta and Vipman (for he psychological help about Ix[egg])
Class Icqpager {
var $path = "/scripts/wwpmsg.dll";
var $host = "wwp.icq.com";
var $port = 80;
var $cmd;
function Icqpager () {
$this->cmd = "POST $this->path http/1.1";
$this->cmd. = "Accept:image/gif, Image/x-xbitmap, Image/jpeg, Image/pjpeg, Application/vnd.ms-excel, application/ MSWord, Application/vnd.ms-powerpoint, */* ";
$this->cmd. = "Accept-language:en-us";
$this->cmd. = "content-type:application/x-www-form-urlencoded";
$this->cmd. = "Accept-encoding:gzip, deflate";
$this->cmd. = "user-agent:mozilla/4.0 (compatible; MSIE 5.01; Windows 95) ";
$this->cmd. = "Host: $this->host";
}
function Send ($uin, $from, $email, $subject, $message) {
$command = "from=". $from. "&fromemail=". $email. "&subject=". $subject. "&body=". $message. "&to=". $uin. "&send=send+message";
$this->cmd. = "Content-length:". Strlen ($command). "";
$this->cmd. = "Connection:keep-alive";
$this->cmd. = $command. "";
$fp = Fsockopen ($this->host, $this->port, & $errno, & $errstr, 30);
if (! $fp) {
echo "Socket Error.
";
echo "$errstr ($errno)
";
} else {
Fputs ($fp, $this->cmd);
Fclose ($FP);
}
}
}
?>
Example
Require ("icqpager.php");
$uin = "YOUR uin number Here";
$from = "root";
$email = "Root@localhost";
$subject = "Test";
$message = "Testing ... 1...2...3 ... ";
$icqpager = new Icqpager ();
$icqpager->send ($uin, $from, $email, $subject, $message);
?>
http://www.bkjia.com/PHPjc/532247.html www.bkjia.com true http://www.bkjia.com/PHPjc/532247.html techarticle Change the address, you can call Oicq Oh! # ICQ Pager v0.0.1 # Brazil r0x. # thanks goes to Upalele, Meganha, Neo, Figui, Lunetta and Vipman (for he psychological help about Ix[egg]) C ...