Guide Categories:  Home | Drivers | Web Development | Hardware | Internet | Q & A | Tips & Tricks | Write
Web Development Silicon Guide
Search SiliconGuide:

Site Services:
Log In
Sign Up

Guides:
Getting Sponsored
Using SSI

#!/usr/bin/perl print < end

#!/usr/bin/perl $random = int(rand(10)); #$random = 10; if ($ENV{'REQUEST_URI'} eq "/qa/forum/messages/259.shtml") { print <
Older printer drivers are always hard to find. How about the ink cartridges for them? Dell ink is the hardest to find. Printer ink for the older machines can be easy to find if you know right where to look. Shop around to find the best deals on inkjet and toner cartridges.
end } elsif ($ENV{'REQUEST_URI'} eq "/tips/win95/office/office.shtml") { print <
Need a place for your Internet mail? Then Exchange email outsourcing is the way to go! No hassles, no coding experience, very little microsoft exchange server experience required at all.
end } elsif ($ENV{'REQUEST_URI'} eq "/internet/napster/4.shtml") { print <
Looking for mp3 players? Need a place to share your music. If you compare prices on some of the top MP3 players, you will notice that they are very inexpensive. Price comparison can be very beneficial to you.
end } elsif ($ENV{'REQUEST_URI'} eq "/qa/forum/messages/975.shtml") { print <
When designing pets in Sims, you may remember that you need pet supplies for your real pet. As much as its just a game, your real pet needs some lovin' right now. Go buy them a Pet Bed, and or teach your Dog some tricks.
end } elsif ($random eq -1) { print < end } elsif ($random eq -2) { @siliconmail_banners=("mail1.gif","mail2.gif","mail3.gif","mail4.gif","mail5.gif"); $ran2 = int(rand(5)); print < Silicon Mail end } elsif (($random >= 0) && ($random <= 7)) { print < end } elsif (($random > 7) && ($random <= 8)) { print < end } else { print < end } #print < #
# #end

The Silicon Guide To
Using Server Side Includes

The Config Command

To configure the how the date commands display their information (DATE_GMT, DATE_LOCAL and LAST_MODIFIED), use the CONFIG command.  The syntax for this command is:

<!--#config timefmt="FORMATTING_GOES_HERE" -->,

where FORMATTING_GOES_HERE is any combination of the following formatting codes:

Formatting Code Description Real-time Example
%a Short weekday name Fri
%A Full weekday name Friday
%b Short month name Apr
%B Full month name April
%c Proper way of formatting the time in the time zone where the server is located. Fri Apr 19 01:49:50 2024
%C Default time format 20
%d Day of the month 19
%D Current date in the standard format of mm/dd/yy 04/19/24
%e Day of the month, without any zeroes. 19
%h Same as %b Apr
%H Current hour in 24 hour format 01
%I Current hour in 12 hour format 01
%j Day of year 110
%m Month of year 04
%M Current minute 49
%n Break line  
%p Indicates whether it is AM or PM AM
%r Time in the format of 2:13:35 PM 01:49:50 AM
%R Time as 16:34 01:49
%S Current second 50
%t Tabulation  
%T Time in the format of 14:23:54 01:49:50
%U Number of the current week 15
%w Current week day 5
%W Same as %U 16
%x Date format of Local Country 04/19/24
%X Time format of Local Country 01:49:50
%y Year in two digit format 24
%Y Year in four digit format 2024
%Z The name of the Local Time Zone UTC

For example if I wanted to display the current time in the format Month dd, YYYY; I would insert the following code into my HTML document:

<!--#config timefmt="%B %d, %Y"-->
<!--#echo var="DATE_LOCAL"-->

which would yield the following output:

April 19, 2024

Next Page:
Including files
Skip Ahead:
Executing CGI Scripts
SSI Hosting and Conclusion

Home | Web Development | Hardware and Upgrading | Internet | Technical Questions & Answers | Tips and Tricks | Write to Us

Last modified on: Tuesday, October 15 2002 at 04:44 PM - UTC
Copyright © 1999 - 2012 SiliconPharm Corporation, All Rights Reserved
Powered by Apache/2.4.54 (Debian) (More Info)