getdate()
function. To add date and time, see the PHP script below.
<html>
<head>
<title>DATE and TIME</title>
</head>
<body>
<?php
$date_array = getdate();
print "Server Date : $date_array[month] $date_array[mday], $date_array[year].<BR>";
print "Server Time : $date_array[hours]:$date_array[minutes]:$date_array[seconds]<BR>";
?>
</body>
</html>
0 comments:
Post a Comment