quote:
Originally posted by rav0
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.
yes i was aware about this
quote:
Originally posted by rav0
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.
Thanks, this does help.
Will this method constantly update the time, or will it only be accurate on every refresh. The script i tried using updates the time on the webpage constantly.
Salem