quote:
Originally posted by rix
I'm not sure, did I understand you correctly, but why don't you just use simple PHP date functions? You can easily show time by doing this:
code:
echo date("H:i:s");
quote:
Originally posted by Salem
Yeh, but im totally new to PHP. If some can help i'd be very greatful
You must rename your files to something.php, they can't be something.html for PHP to work (except for exceptions). Sorry if you already knew this.
Inside a file called something.php, put this:
code:
<?php
echo date('g:i A');
?>
Wherever in the file you put it, PHP shpuld make it come out like
12:35 PM (the current time).
Instead of
g:i A, you can put other things to have the time in a different format. Refer to
date in the PHP manual for the parameters you can use.
Though if you are having problems still, maybe the time is not working on the server.