View Single Post
Old 02-27-2008, 03:19 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
this is an ajax front end to system information. updating the UI through ajax is expensive, so i only want to do it when something has changed in a log file.

the system will not be able to notify the web client directly, so i will need js->php to get server-side info.

if i had a listener app writing to mysql, then php polling for changes, it would be more expensive than php just looking directly at the file.

so i guess the question was more like this: within PHP, what uses less resources, checking the file size, change time, or something else that would allow me to detect a change.
__________________
testing 1 2 3
sde is offline   Reply With Quote