您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP写的ICQ呼机_PHP教程

2024/5/29 15:26:23发布55次查看
改下地址,可以呼oicq的喔!
# icq pager v0.0.1
# brazil r0x.
# thanks goes to upalele, meganha, neo, figui, lunetta and vipman(for his 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.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/532247.htmltecharticle改下地址,可以呼oicq的喔! # icq pager v0.0.1 # brazil r0x. # thanks goes to upalele, meganha, neo, figui, lunetta and vipman(for his psychological help about ix[egg]) c...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product