dlevens Posted August 1, 2004 Posted August 1, 2004 I am looking for a nice script to display the current time and date on my website. I am hoping to find something that can do the following: 1. display is dynamic and text based 2. streamlined and super fast to load 3. displays the time from one of the SNTP servers So far the best I have found is this PHP script but it pulls the webservers time and the website I want to put this in is HTML not PHP and I am such a newb when it comes to PHP that I have not figured out how to include this PHP code into my HTML page. ><?php $hourdiff = "3"; $timeadjust = ($hourdiff * 60 * 60); $melbdate = date("l, d F Y h:i a",time() - $timeadjust); print ("$melbdate"); ?> If anyone has found anything worth using please let me know Thanks, Dennis Quote
TCH-Bruce Posted August 1, 2004 Posted August 1, 2004 If you add this line to your .htaccess file you will be able to include that script in your html page to display. AddType application/x-httpd-php .htm .html Quote
borfast Posted August 1, 2004 Posted August 1, 2004 Moving to a more appropriate forum (the title even says "Looking for" ). Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.