Home > Backend Development > PHP Problem > How to publish notification in php

How to publish notification in php

王林
Release: 2023-02-27 08:42:02
Original
2557 people have browsed it

How to publish notification in php

Method 1:

Use jquery to call the data implementation in the database every once in a while.

Advantages:

Simple

Disadvantages:

Continuous access to the server easily increases the burden on the server .

Method 2:

Using webSocket technology, a channel is established between the server and the web page, and the server can actively send data to the browser.

Recommended tutorial: PHP video tutorial

The above is the detailed content of How to publish notification in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template