douzouchang7448 2010-10-13 06:50
浏览 63
已采纳

php应用程序上的聊天功能

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?
  • 写回答

2条回答 默认 最新

  • dousha7645 2010-10-14 11:29
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制