Tell me, is it possible to somehow organize the sending of a message from a text field on the site to a certain person in ICQ. That is, the visitor enters the site, writes something in the message field, presses the input and voila, the message is sent to me in ICQ.
1 answer
There is one class for working with ICQ . To be honest, I did not try it, but by example it is very similar to what you need.
- I talked about him. He has an extremely unpleasant flaw: to be used as the author wants, he will have to be ruined and shoveled very specifically: he will connect EVERY time at startup, instead of checking whether there is a connection. I once turned out to do it lazily. - knes
- 2I use this thing, no complaints yet. The only thing you would be advised is to issue as a daemon and send requests for it user -> action.php -> localhost:% DAEMON_PORT% -> admin_icq | user <- 'Here is an approximate scheme - Sh4dow
- @knes, Is it really true, will you have to shovel dofig code there? As I understand it, we really need two functions: login and close. - ling
- True. Let's just say: the last year's version looked exactly like this - there were too closely intertwined functions of login and work with messages, so much so that it turned out to be easier to write something like a live operator. - knes
- so you are there, there is a maximum, without touching the class, the code page on the demon and half a page on the form handler%)
while($icq->isConnected()) { Π»ΠΎΠ²ΠΈΠΌ_Π·Π°ΠΏΡΠΎΡ_Π½Π°_ΠΏΠΎΡΡΡ_3128(); ΡΠ»Π΅ΠΌ_Π½Π°_Π½ΠΎΠΌΠ΅Ρ_Π°Π΄ΠΌΠΈΠ½Π°(); ΡΠΏΠΈΠΌ(2); }
while($icq->isConnected()) { Π»ΠΎΠ²ΠΈΠΌ_Π·Π°ΠΏΡΠΎΡ_Π½Π°_ΠΏΠΎΡΡΡ_3128(); ΡΠ»Π΅ΠΌ_Π½Π°_Π½ΠΎΠΌΠ΅Ρ_Π°Π΄ΠΌΠΈΠ½Π°(); ΡΠΏΠΈΠΌ(2); }
while($icq->isConnected()) { Π»ΠΎΠ²ΠΈΠΌ_Π·Π°ΠΏΡΠΎΡ_Π½Π°_ΠΏΠΎΡΡΡ_3128(); ΡΠ»Π΅ΠΌ_Π½Π°_Π½ΠΎΠΌΠ΅Ρ_Π°Π΄ΠΌΠΈΠ½Π°(); ΡΠΏΠΈΠΌ(2); }
- Sh4dow
|