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

Hosted by FutureQuest.net Click to find out more

Today is Saturday, February 4, 2012. You loaded this page at 09:15am EST/GMT-0500. We are on day 6 of week 05 in the 12th 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.179.231REMOTE_ADDR
GETREQUEST_METHOD
www.aota.netSERVER_NAME
80SERVER_PORT
HTTP/1.1SERVER_PROTOCOL
Apache/1.3.41 (Unix) PHP/5.2.17SERVER_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 Feb 4 14:15:51 2012DATE_GMT The current GMT (Greenwich, UK) <!--#echo var="DATE_GMT" --> can be formatted using #config
Sat Feb 4 09:15:51 2012DATE_LOCAL current time/date, <!--#echo var="DATE_LOCAL" --> can be formatted using #config
Sat%a abbreviated weekday name
Saturday%A full weekday name
Feb%b abbreviated month name
February%B full month name
Sat Feb 4 09:15:51 2012%c default date and time format
20%C Show's Century
04%d day of month - 01 to 31
02/04/12%D date as %m/%d/%y
4%e day of month - 1 to 31 (single digits are preceded by a blank)
Feb%h abbreviated month name (alias for %b)
09%H hour - 00 to 23
09%I hour - 01 to 12
035%j day of year - 001 to 366
02%m month of year - 01 to 12
15%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
09:15:51 AM%r time as %I:%M:%S %p
09:15%R time as %H:%M
51%S second - 00 to 61
Sat Sat%t insert a tab character
09:15:51%T time as %H:%M:%S
05%U week number of year (Sunday is the first day of the week) - 00 to 53
6%w day of week - Sunday=0
05%W week number of year (Monday is the first day of the week) - 00 to 53
02/04/12%x Country-specific date format
09:15:51%X Country-specific time format
12%y year within century - 00 to 99
2012%Y year as CCYY (4 digits)
-0500%z GMT
EST%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