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 ...