chat functionality on php application
SO has lot many questions of this type but not able to find correct solution. May be I am missing anything.
I am struggling from last few days for finding better option for Chat service. Following thing I have to keep in mind before using any option..
- It should be OS independent
- Installation should be easy
- Opensource so that can be modify as per requirement.
- Lightweight
- Chat Client should be customizable and 开发者_如何学运维lightweight
- File Sharing, Private Chat, Group Chat, emotions should be there.
- Chat should not allow user to connect with other outsider chat servers like gmail, AOL, etc..
I have developed chat service using Openfire server as chat server and Jetty applet as client. But this applet is not as userfriendly and need to work a lot to make it look like gmail chat or facebook chat.. Also I am going to use Zend framework, PHP, MySQL, Apache server. And server OS could be windows or Linux.
Here are few more questions...
- Is there way to use openfire server as chat server with some other javascript/AJAX/Dojo as Client?
- How we can use XAMPP-BOSH for Chat service? Is this XAMPP is related to XAMPP server of apache, PHP, etc...?
- How we can use Dojo.io.cometd library for chat?
Consider AjaxIM. A colleague of mine developed it. There's no PHP aspect (there was, but it is no longer supported), but the front-end is entirely written in JavaScript and the back-end uses Node.js. This is very fast and should be relatively portable. I do not know whether it supports things like file sharing or group chat, though I do know that it does allow user-to-user communication.
I have set openfire http-bind port to 8181 previously 7070.
Following changes i have done in ijab_config.js
xmpp:{
domain:"ipaddress",
http_bind:"/http-bind/",
host:"ipaddress:8181",
port:5222,
server_type:"Openfire",
muc_servernode:"ipaddress",
...
}
and following will go to .htaccess file which will be placed in htdocs
AddDefaultCharset UTF-8
Options +MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule http-bind/ http://ipaddress:8181/http-bind [P]
</IfModule>
Here ipaddress can be replace with localhost or domain name.
精彩评论