In a little project I'm tinckering with,
there are a couple of pages that auto-
refresh [using a combination of META-EQUIV
and java-script], and I amd tring to get the
frequency of the refreshes to reduce
depending on how much info is being passed
on - i.e. during high-load times.
I can easily find out how much data is
being sent on each page [by using buffering
and checking the buffer length before
finishing/flushing], but is it possible
to read what headers php is sending back
to the browser, so I can add their length
to the total - as some of the auto-refresh
pages may only be on or two hundred bytes
in length this may be significant.
I could, of course, just make an educated
guess...
I could also base the 'how often to refresh'
judgement on the number of requests rather
than the amount of data sent, but my limiting factor is bandwidth and not
connections or server CPU/RAM etc...
Any thoughts anyone?