View Single Post
Old 05-21-2009, 05:00 PM   #1 (permalink)
buildakicker
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Smile 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!
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote