Zend - The PHP Company




Date & Time

Add Code


Basic clock  

Type: application
Added by: joikulp
Entered: 02/02/2004
Last modified: 02/12/2003
Rating: *** (5 votes)
Views: 8274
Clock that refresh every 1 sec.


<HTML>
<HEAD>
<TITLE>Joe-programs</TITLE>
</HEAD>
<BODY>
<?php
Print "The clock is:<BR>";
$klukkutimar date (H); // This code findes the hours.
$minutur date (i); // This code findes the minits.
$sekundur date (s); // This code findes the sec.
$klukka "$klukkutimar : $minutur : $sekundur"// This code putes the clock together.
Print $klukka// This code prints the code to the browser.
?>
</BODY>
<META HTTP-EQUIV="refresh" CONTENT=1"; URL=index1.php"> <!--This code refresh the browser every 1 sec-->
</HTML>


Usage Example


12 : 31 : 51


Rate This Script





Search



This Category All Categories