[文章作者:张宴 本文版本:v1.0 最后修改:2008.12.30 转载请注明原文链接:http://blog.zyan.cc/post/390/]

  我之前的一篇文章《Linux服务器系统监控框架与MSN、E-mail、手机短信报警的实现》中提到MSN报警,当时使用的sendMsg类采用的是MSNP9协议,不支持离线消息。最近找到一个PHP MSN Class(http://code.google.com/p/phpmsnclass/),支持MSNP9 (MSN 6.2)和最新的MSNP15 (WLM 8.1)协议(MSNP15协议支持离线消息),可以作为MSN机器人使用,或者给MSN、雅虎通发消息。

  示例代码:必须确保发送人、接收人的MSN互相加为好友。

  MSN机器人的实现,该phpmsnclass的Wiki上有说明,感兴趣的朋友可以参考(默认MSNP9协议):
  http://code.google.com/p/phpmsnclass/wiki/msnbot

  注意:使用MSNP15协议,PHP需要支持mhash;使用msnbot机器人功能,PHP需要支持pcntl。我的文章《Nginx 0.7.x + PHP 5.2.8(FastCGI)搭建胜过Apache十倍的Web服务器(第4版)V4.10》中的PHP configure编译参数已经支持mhash、pcntl,可供大家参考。



Tags: , , ,



技术大类 » PHP/JS/Shell | 评论(50) | 引用(20) | 阅读(64847)
shz Email
2022-7-27 20:03
I am a new user of this site so here i saw multiple articles and posts posted by this site,I curious more interest in some of them hope you will give more information on this topics in your next articles.  Lead generation
shz Email
2022-7-27 20:06
Writing with style and getting good compliments on the article is quite hard, to be honest.But you've done it so calmly and with so cool feeling and you've nailed the job. This article is possessed with style and I am giving good compliment. Best!  Lead generation
shz Email
2022-7-27 20:10
Very awesome!!! When I seek for this I found this website at the top of all blogs in search engine.  Lead generation
shz Email
2022-7-27 20:14
You completely match our expectation and the variety of our information.  Lead generation
shz Email
2022-7-27 20:16
Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog.  Lead generation
shzz Email
2022-7-27 22:30
Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog.  Lead generation
Lucky cola
2024-2-7 16:41
Face off against players from around the globe.  Lucky cola
分页: 4/4 第一页 上页 1 2 3 4 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]