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.

  • Yes, definitely possible. But I used PHP ICQ, which imposes some restrictions. BUMP !, I want to look at the normal solution myself - knes

1 answer 1

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
  • 2
    I 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