never the less this does the jobby.
it uses an iframe as its display, with a seperate script which gets the time and refreshes the time every x seconds.
firstly. add the following to your header or where ever you want it displayed.
Code: Select all
<iframe src="../scripts/time.php" width="130" height="40" border="0" frameborder="0" marginwidth="1" marginheight="0" align="middle"></iframe>then input the following into this new file.
Code: Select all
<head>
<meta http-equiv="refresh" content="10;url=time.php" />
</head>
<body>
<?php
$time = date("H:i");
$date = date("d/m/y");
echo "<div align='center'>";
echo $date;
echo "<br />";
echo $time;
echo "</div>";
?>
</body>i dont completly understand all this, but it was made from a different tutorial for a flat based shoutbox, which i adapted. http://www.trap17.com/index.php/flat-ba ... 57148.html
its 100% working though. so thats all i care about. thought i would share