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

报告相同问题?

悬赏问题

  • ¥20 求快手直播间榜单匿名采集ID用户名简单能学会的
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历