|
|
|
|
|
|
|
![]() |
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
![]() |
#1 |
Selling porn allows me to stay in a constant state of Bliss - ain't that a trip!
Join Date: Apr 2003
Posts: 3,914
|
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? |
![]() |
![]() |
![]() |
#2 |
I'm a jaded evil bastard, I wouldn't piss on myself if I was on fire...
|
__________________
I sale Internet My sites have no traffic and no PR - let's trade - PM me |
![]() |
![]() |
![]() |
#3 |
Life is good
|
That'll pretty well do it.
![]() |
![]() |
![]() |
![]() |
#4 |
Programming till my fingers bleed.
Join Date: Aug 2003
Location: Michigan
Posts: 876
|
Or for PHP you can use something like
<?php echo date("m/d/Y"); ?> |
![]() |
![]() |
![]() |
#5 |
Selling porn allows me to stay in a constant state of Bliss - ain't that a trip!
Join Date: Apr 2003
Posts: 3,914
|
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...) |
![]() |
![]() |
![]() |
#6 |
Programming till my fingers bleed.
Join Date: Aug 2003
Location: Michigan
Posts: 876
|
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 |
![]() |
![]() |
![]() |
#7 | |
I Didn't Do It
|
Quote:
AddType application/x-httpd-php html or you can force for a particular file like this <Files filename.html> ForceType application/x-httpd-php </Files> |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|