User's pane now also uses keepalives -- if the refresh freq is below
the disconnect timeout, then it is a win. Otherwise it wastes memory
at the server end.
/// Print headers
$meta = ob_get_clean();
+
+
+ // Use ob to support Keep-Alive
+ ob_start();
print_header('', '', '', '', $meta, false, '', '', false, 'onload="start()" onunload="stop()"');
echo '<td></tr>';
}
echo '</table></body></html>';
+
+ // support HTTP Keep-Alive
+ header("Content-Length: " . ob_get_length() );
+ ob_end_flush();
+ exit; // no further output
+
+
?>