在会员站点中实现PHP聊天 [英] Implementing PHP chat in members site

查看:91
本文介绍了在会员站点中实现PHP聊天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个会员站点,我想向其中添加聊天(专用框上的LAMP).不必太复杂,但必须使用已经登录的成员的用户名进行聊天.

I have a members site which I'd like to add chat to (LAMP on a dedicated box). It doesn't need to be too complex, but must use the already-logged-in members' usernames for chat.

这对我来说是一个附带项目,所以我宁愿不要从头开始编写它,现有的脚本或类将是理想的.我做了一些搜索,似乎确实倾向于JSON/Ajax,但是我找不到确定的任何内容.

This is a bit of a side project for me, so I'd rather not write it from scratch if possible & an existing script or class would be ideal. I've done a bit of searching and there does seem to be a leaning towards JSON/Ajax, but I can't find anything definitive.

有任何提示/指针吗?

推荐答案

以下两个项目可能会对您有所帮助(均基于AJAX/JSON):

Here are two projects that might help you out (both AJAX/JSON based):

  • jQuery Ajax Chat plugin - a simple, light-weight plugin for jQuery. No bells or whistles, but it gets the job done.

Ajax IM -一种试图模仿所有功能的成熟Web应用程序期望在桌面IM客户端中.相当大的下载大小(压缩后为324KB).

Ajax IM - a full-blown web app that tries to emulate all features one would expect in a desktop IM client. Pretty hefty download size (324KB compressed).

我目前在我的一个项目中将第一个用于基本IM系统.我能够使用每个用户的系统凭据来实现它(因为他们已经登录到系统-而不是让他们选择自己的昵称).该示例包括由AJAX轮询的脚本的PHP源代码.效果很好.

I'm currently using the first one for a basic IM system on one of my projects. I was able to implement it using each user's system credentials (since they're already logged into the system - instead of letting them choose their own nickname). The sample includes PHP source code for the script that gets polled by the AJAX. It works great.

这篇关于在会员站点中实现PHP聊天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆