tags:

views:

90

answers:

3

is there a way to send instant message from your php code to formal messenger like yahoo messenger, skype or MSN messenger??

A: 

Yes, if you know a protocol.

PHP is not a magic wand. but merely a hypertext preprocessor.
So, there is no built it instant messaging support.

Though it has basic TCP/IP sockets support, so, you can write your own client, if you know, what to write into socket. Means if you know the protocol which particular instant messager using.

If you don't know what TCP/IP and sockets is - you'd better to find yourself another task, less complicated one.

Col. Shrapnel
could you plz clarify more?how can i send it
Alaa
This is a very unhelpful answer.
ceejayoz
it's a life. sometimes we get answers that not help us in this very instant but help us to grow up and understand something.
Col. Shrapnel
+5  A: 

Yes. You can use libpurple. It has PHP bindings.

This libpurple PHP binding, which defines a set of internal classes, gives a possibility to use aol and icq (oscar), yahoo, msn, jabber, irc and much more protocols directly from PHP. Write your own IM chat client in PHP, as simply as PHP enables it.

For Skype you will need their COM Control. Then you can use the COM extension in PHP to interface with Skype.

Gordon
+1  A: 

Please refer to http://code.google.com/p/phpmsnclass/ . I think that is what you want.

MSN class for php, support MSNP9 (MSN 6.2) and MSNP15 (WLM 8.1), use as a bot or just send message to MSN or Yahoo (via MSN, you need Yahoo 8.1 to communicate with MSN). Support OIM (offline message) if using MSNP15.

whentp