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

Hosted by FutureQuest.net Click to find out more

Today is Sunday, August 1, 2010. You loaded this page at 02:53am EDT/GMT-0400. We are on day 0 of week 30 in the 10th 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.107.191.98REMOTE_ADDR
GETREQUEST_METHOD
www.aota.netSERVER_NAME
80SERVER_PORT
HTTP/1.1SERVER_PROTOCOL
Apache/1.3.41 (Unix) PHP/5.2.12SERVER_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
Sun Aug 1 06:53:00 2010DATE_GMT The current GMT (Greenwich, UK) <!--#echo var="DATE_GMT" --> can be formatted using #config
Sun Aug 1 02:53:00 2010DATE_LOCAL current time/date, <!--#echo var="DATE_LOCAL" --> can be formatted using #config
Sun%a abbreviated weekday name
Sunday%A full weekday name
Aug%b abbreviated month name
August%B full month name
Sun Aug 1 02:53:00 2010%c default date and time format
20%C Show's Century
01%d day of month - 01 to 31
08/01/10%D date as %m/%d/%y
1%e day of month - 1 to 31 (single digits are preceded by a blank)
Aug%h abbreviated month name (alias for %b)
02%H hour - 00 to 23
02%I hour - 01 to 12
213%j day of year - 001 to 366
08%m month of year - 01 to 12
53%M minute - 00 to 59
Sun Sun%n insert a new line character
AM%p string containing AM or PM
am%P string containing am or pm
02:53:00 AM%r time as %I:%M:%S %p
02:53%R time as %H:%M
00%S second - 00 to 61
Sun Sun%t insert a tab character
02:53:00%T time as %H:%M:%S
31%U week number of year (Sunday is the first day of the week) - 00 to 53
0%w day of week - Sunday=0
30%W week number of year (Monday is the first day of the week) - 00 to 53
08/01/10%x Country-specific date format
02:53:00%X Country-specific time format
10%y year within century - 00 to 99
2010%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