neur0maniak <us****@neur0maniak.co.uk> wrote in message news:<40***********************@ptn-nntp-reader04.plus.net>...
Stokesy wrote:
I am running a web page that has multiple web cams.
The users are given ftp accounts to upload their web cam images every
30 seconds.
What I want to do is instead of having the "refresh" in the header to
re-load the entire page from the server every 30 seconds, is to have
it re-load only the images that have been updated in the last 30
seconds. This is to cut down on wasted bandwidth.
I was thinking of giving each webcam picture its own i-frame, and
somehow getting the php to reload the frames containing the images
that have recent file modifycation dates.
Anyone have any ideas?
when you refresh the page, each image should have a querystring attached
, with the unix time of when it was last updated. This means that
browsers should cache the pictures that haven't changed and not bother
to download them. But there's no predicting what people have what
settings on their browser cache...
Its strange, if I make a form submit button that just points to
itself, and i click that, only the updated images load, but if i put a
refresh header in the html or php, when it reloads, it loads every
picture off the server again regardless.