有没有办法让 php 脚本运行,它执行以下操作: - 登录 icq-account - 接收来自现有联系人 #12345678 的所有(如果有)消息 - 将这些消息写入数组,例如 $messages = 数组();
编辑 我想得到这样的答案:“bla”很好,活跃的社区,经常更新,因为 icq 改变了很多他们的内部结构,......
Let's see: http://www.google.com/search?q=icq+php
First result of that: http://www.phpclasses.org/package/3663-PHP-Communicate-with-ICQ-users.html
This class can be used to communicate with other ICQ users.
It can:
- Establish connections to an ICQ server using non-blocking sockets
- Authenticate as a given user
- Receive offline messages
- Send and receive messages
- (...)
I'd say that's the code you are looking for.
There are many classes for that (google: php icq), but they are quite unstable because of restricted protocol. You also can use classes for Jabber (they work more properly) and receive messages from icq through the transport.