05-21-2009, 05:00 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Jan 2008
Posts: 119
Thanks: 21
|
Using AJAX and PHP to check filemtime($filename)
Hi all,
I have a flat file that I would like to have updated in my browser if someone on another computer updates it. What I have done so far is use PHP to tell me when the last update happened. So what I was thinking I should do is use AJAX to run in the bg every 10 seconds or so and check if that filemtime() has changed. IF it has, update the div with the current text file info.
Any thoughts on how to use AJAX as a timer in this fashion? or do I need to do something else?
Thanks!
|
|
|
|