Home Backend Development PHP Tutorial 回复:关于PHP聊天室的讨论_PHP

回复:关于PHP聊天室的讨论_PHP

Jun 01, 2016 pm 12:32 PM
op about reply chatroom discuss

一、Apache+PHP 能否实现Server Push 将服务器端的聊天信息连续地
    源源不断地传送到客户端,类似湛江聊天室。
这种聊天室的WEB服务器一般是自己写的专用聊天服务器。所以才能做到你说的那样。

二、ASP聊天室可通过Application 和 Session 保存信息。Php聊天室
    用什么保存公共信息?数据库?文本文件?内存?
PHP4支持SESSION,是用文本文件来实现的。PHPCHINA。COM也有一篇用内存实现APPLICATION的例子。

三、如何判断聊天室视同者A是否在线?

  在做定时刷新的时候,就可以在SERVER端置一个时间标志此人在线,如果3分钟都没有更新此标志,就认为此人不在线。
……

四、那里有比较好的PHP聊天室源码下栽?
  这个嘛,到这里看看吧。http://www.phpwizard.net/index.html

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Use ddrescue to recover data on Linux Use ddrescue to recover data on Linux Mar 20, 2024 pm 01:37 PM

DDREASE is a tool for recovering data from file or block devices such as hard drives, SSDs, RAM disks, CDs, DVDs and USB storage devices. It copies data from one block device to another, leaving corrupted data blocks behind and moving only good data blocks. ddreasue is a powerful recovery tool that is fully automated as it does not require any interference during recovery operations. Additionally, thanks to the ddasue map file, it can be stopped and resumed at any time. Other key features of DDREASE are as follows: It does not overwrite recovered data but fills the gaps in case of iterative recovery. However, it can be truncated if the tool is instructed to do so explicitly. Recover data from multiple files or blocks to a single

Unable to boot into Windows recovery environment Unable to boot into Windows recovery environment Feb 19, 2024 pm 11:12 PM

Windows Recovery Environment (WinRE) is an environment used to repair Windows operating system errors. After entering WinRE, you can perform system restore, factory reset, uninstall updates, etc. If you are unable to boot into WinRE, this article will guide you through fixes to resolve the issue. Unable to boot into the Windows Recovery Environment If you cannot boot into the Windows Recovery Environment, use the fixes provided below: Check the status of the Windows Recovery Environment Use other methods to enter the Windows Recovery Environment Did you accidentally delete the Windows Recovery Partition? Perform an in-place upgrade or clean installation of Windows below, we have explained all these fixes in detail. 1] Check Wi

How to swipe right and reply quickly in iMessage on iOS 17 How to swipe right and reply quickly in iMessage on iOS 17 Sep 20, 2023 am 10:45 AM

How to Use Swipe to Reply in iMessages on iPhone Note: The Swipe to Reply feature only works with iMessage conversations in iOS 17, not regular SMS conversations in the Messages app. Open the Messages app on your iPhone. Then, head to the iMessage conversation and simply swipe right on the iMessage you want to reply to. Once this is done, the selected iMessage will be in focus while all other messages will be blurred in the background. You'll see a text box for typing a reply and a "+" icon for accessing iMessage apps like Check-ins, Places, Stickers, Photos, and more. Just enter your message,

The original comment was deleted. Is the reply still there? Can others still see my comments after I delete them? The original comment was deleted. Is the reply still there? Can others still see my comments after I delete them? Mar 23, 2024 pm 05:56 PM

In a world where social media is overflowing with information, people are paying more and more attention to the content they post on the platform and how they interact with others. When we leave a comment under a certain post, if the original author deletes it, whether the comment will continue to exist has become a hotly debated issue. 1. The original comment has been deleted. Is the reply still there? First, it needs to be clear that social media platforms are highly flexible in how they handle user information and interactions. Even though the original comment is deleted, replies often remain below the post, even though they may not appear to be directly connected. This means that even if the original comment has disappeared, subsequent readers can still see the replies and infer some information based on those replies. Therefore, deleting the original comment will not completely eliminate traces of the interaction.

How to implement a simple chat room function using MySQL and Java How to implement a simple chat room function using MySQL and Java Sep 21, 2023 pm 05:13 PM

How to use MySQL and Java to implement a simple chat room function Introduction: With the prevalence of social media today, people increasingly rely on online chat to communicate and share information. How to implement a simple chat room function using MySQL and Java is a very interesting and practical project. This article will introduce how to use MySQL and Java to implement this function, and provide specific code examples. 1. Build a database First, we need to create a database in MySQL to store chat room related information.

How to write an interesting reply sentence to a TikTok comment? What are the benefits of replying to comments? How to write an interesting reply sentence to a TikTok comment? What are the benefits of replying to comments? Mar 21, 2024 pm 06:01 PM

On this platform, in addition to watching interesting short videos, browsing interesting comments has also become an enjoyable experience for many users. Funny Tiktok comment replies not only elicit laughter but also resonate, and sometimes add sparkle to the content. 1. How to write an interesting reply sentence to a Douyin comment? 1. Integrate current affairs hot spots: Current affairs hot spots are the focus of everyone's attention. Integrating them into comments and replies can quickly arouse the interest of others. For example, on a popular dance video on Douyin, you can comment: "Is this the 'social shake' that became popular during the epidemic in my country? It's so energetic!" Such comments are humorous and appropriate, and can make people understand My heart smiles. The use of exaggeration is a common technique in humorous commentary. By moderately exaggerating an object or situation, you can make the review more interesting and make the

How to develop Websocket chat room using Go language How to develop Websocket chat room using Go language Dec 14, 2023 pm 01:46 PM

How to use Go language to develop a Websocket chat room. Websocket is a real-time communication protocol that allows two-way communication between the server and the client by establishing a connection. Websocket is a very good choice when developing chat rooms because it enables real-time message exchange and provides efficient performance. This article will introduce how to develop a simple Websocket chat room using Go language and provide some specific code examples. 1. Preparation 1. Install Go

Build a real-time chat room based on JavaScript Build a real-time chat room based on JavaScript Aug 10, 2023 pm 11:18 PM

Building a real-time chat room based on JavaScript With the rapid development of the Internet, people are paying more and more attention to instant messaging and real-time interactive experience. As a common instant messaging tool, real-time chat rooms are very important to both individuals and businesses. This article will introduce how to build a simple real-time chat room using JavaScript and provide corresponding code examples. We first need a front-end page as the UI interface of the chat room. Here is an example of a simple HTML structure: <!DOCTYPE

See all articles