![]() |
Most compact way to display todays date on a page?
The topic pretty much says it - I'm looking for the most compact scripting to display todays date on a page.
The javascript stuff seems pretty bulky, is there some way to do it that doesn't take multiple lines of script? |
|
That'll pretty well do it. :)
|
Or for PHP you can use something like
|
Two beautiful methods, thanks much Wazza and Acidmax!
I'm a little more familiar with ssi than php, is there anything special that I have to do to get the php method to display on an html page? (I know that to use the ssi method I have to insert the entries into htaccess to get ssi to display on an html page. I'm guessing there's a similar htaccess entry for php...) |
If php is installed on your webserver (it is on the majority out there). Just save the file with a .php extension and put that code where you want the date and you are all set.
Andy |
Quote:
AddType application/x-httpd-php html or you can force for a particular file like this ForceType application/x-httpd-php |
All times are GMT -4. The time now is 06:00 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc