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条)

报告相同问题?

悬赏问题

  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图