Php+ajax Real-time refresh of simple instances, phpajax real-time instances _php tutorials

Source: Internet
Author: User

Php+ajax Real-time refresh of simple instances, phpajax real-time instances


The example of this paper describes the Php+ajax real-time Refresh simple implementation method, share to everyone for your reference. Specific as follows:

Ajax automatic refresh seems to be a very common problem, before doing a web chat room program is also stuck in the above, after this period of study, finally made a can automatically refresh the page code framework, hope is confused the pro don't like me to walk so many detours
Don't say much nonsense about the code:

HTML section:

     Manual Refresh    

PHP section (just a test page for real-time refresh)

<?php/* 1. Read the file 2. Push display 3. */Echo file_get_contents ("Data.dat");  

So as long as the change Data.dat can be displayed on the Web page in real time.

I hope this article is helpful to everyone's PHP programming.

http://www.bkjia.com/PHPjc/960719.html www.bkjia.com true http://www.bkjia.com/PHPjc/960719.html techarticle Php+ajax Real-time Refresh simple instance, Phpajax real-time instance this article describes the Php+ajax real-time Refresh simple implementation method, share to everyone for your reference. The following: Ajax Auto Refresh ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.