Date & Time
|
|
|
|
<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
|
|
|
Rate This Script
|
|
|
|