jabber chat in php integration help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
srinivasanm
Forum Newbie
Posts: 1
Joined: Thu Mar 13, 2008 1:17 am

jabber chat in php integration help

Post by srinivasanm »

Hello Everyone,

There is a need for me to integrate jabber chat in my application. So i am in a stage of creating a client window, from where we can chat with each other (it is only a simple chat window - where one to one chat is possible).

What I am done right now is as follows,
1. I am provided a link, so when we click that link than we will opening a pop up window.
2. This window is built with frames, so the top frames will call the class_jabbar.php files for showing the chat messages. Where as in the bottom frame there is a textarea - which is used to send messages to other persons.

What I am confused here is,
1. Whether each time we should connect the jabber server and also login for authentication?? Because as i said above when we opened the pop up window - the top frame will connect the jabber server and also login for autentication.
2. Whereas in the bottom frame it will also connect to the server and login again while sending messages each time to others. Which means, the system will login/connect the server each time when i am sending messages to others.

My question is whether the above thing is correct, login/connecting the jabber server each time while sending messages is correct. If not please provide me a solution for this as soon as possible.

Thanks and Regards,
Sri
Post Reply