| AOTA Home | FutureQuest Home | Community Support Forums | Technical Support |

Hosted by FutureQuest.net Click to find out more

Today is Saturday, July 5, 2008. You loaded this page at 05:07am EDT/GMT-0400. We are on day 6 of week 26 in the 08th year. You are using CCBot/1.0 (+http://www.commoncrawl.org/bot.html) to view SSI.shtml (this page), which was last updated on 02/28/03. You are now going to learn how I knew all this!

Server Side Includes

The simplest tutorial I've found on the subject is located at Bignosebird.com I can not see reinventing the wheel on this one. If you would like more information try there for a simple tutorial.

To go a little further - Apache Week issue 27 had an excellent primer for using SSI.

Below is a list of common SSI Commands that will work on your server.

Code In Use<!--#echo var="CODE" -->
CCBot/1.0 (+http://www.commoncrawl.org/bot.html)HTTP_USER_AGENT
SSI.shtmlDOCUMENT_NAME
/SSI.shtmlDOCUMENT_URI
/big/dom/xaota/wwwDOCUMENT_ROOT
http://www.aota.net/SSI.shtmlSCRIPT_URI
Fri Feb 28 14:27:49 2003LAST_MODIFIED
(none)HTTP_REFERER
38.103.63.18REMOTE_ADDR
GETREQUEST_METHOD
www.aota.netSERVER_NAME
80SERVER_PORT
HTTP/1.1SERVER_PROTOCOL
Apache/1.3.37 (Unix) PHP/4.4.4SERVER_SOFTWARE
webmaster@aota.netSERVER_ADMIN
aotaUSER_NAME
Code In UseHow to use it..
11k<!--#fsize file="SSI.shtml" -->
Shows the file size of file specified in the same directory.
[an error occurred while processing this directive]<!--#fsize virtual="/ubb/index.html" -->
Shows the file size of file specified in a different directory.
This Is test.txt<!--#include file="test.txt" -->
Places the entire contents of a different file within the same directory into the current page.
This Is test.txt Virtual<!--#include virtual="/include/test.txt" -->
Places the entire contents of a different file from a different directory into the current page.

Code In UseCODEPURPOSE OF CODE
Sat Jul 5 09:07:05 2008DATE_GMT The current GMT (Greenwich, UK) <!--#echo var="DATE_GMT" --> can be formatted using #config
Sat Jul 5 05:07:05 2008DATE_LOCAL current time/date, <!--#echo var="DATE_LOCAL" --> can be formatted using #config
Sat%a abbreviated weekday name
Saturday%A full weekday name
Jul%b abbreviated month name
July%B full month name
Sat Jul 5 05:07:05 2008%c default date and time format
20%C Show's Century
05%d day of month - 01 to 31
07/05/08%D date as %m/%d/%y
5%e day of month - 1 to 31 (single digits are preceded by a blank)
Jul%h abbreviated month name (alias for %b)
05%H hour - 00 to 23
05%I hour - 01 to 12
187%j day of year - 001 to 366
07%m month of year - 01 to 12
07%M minute - 00 to 59
Sat Sat%n insert a new line character
AM%p string containing AM or PM
am%P string containing am or pm
05:07:05 AM%r time as %I:%M:%S %p
05:07%R time as %H:%M
05%S second - 00 to 61
Sat Sat%t insert a tab character
05:07:05%T time as %H:%M:%S
26%U week number of year (Sunday is the first day of the week) - 00 to 53
6%w day of week - Sunday=0
26%W week number of year (Monday is the first day of the week) - 00 to 53
07/05/08%x Country-specific date format
05:07:05%X Country-specific time format
08%y year within century - 00 to 99
2008%Y year as CCYY (4 digits)
-0400%z GMT
EDT%Z time zone name


Hosted by FutureQuest.net Click to find out more


| AOTA Home | FutureQuest Home | Community Support Forums | Technical Support |


© Copyright 1998-2003 FutureQuest®, Inc.
You may not duplicate or redistribute in any form without prior written consent.
Web Site:
http://www.FutureQuest.net EMail: Service@FutureQuest.net