syndilights/displayclienthtml/stream.php

12 lines
225 B
PHP

<?
while (true) {
?>
<script type="text/javascript">
$('news').innerHTML = '<?= date(DATE_RFC822) ?>';
</script>
<?
flush(); // Ensure the Javascript tag is written out immediately
sleep(10);
}
?>