SSI Commands |
A brief list of Server Side Include commands |
I've added this to my web site because I found it very hard to get this information when I needed it myself. I have included some links at the end of the page of some sites that I have found that do a more comprehensive job then here. |
Command | Parameter | Argument Type | Function |
#config | var | Definition | Allows to have field formats defined as requested |
#echo | var | a SSI variable | Echo, display, the value of the requested variable. |
#include | file | file name | Puts the contents of the names file inside the current file. |
CODE | PURPOSE OF CODE | DISPLAYS |
%a | abbreviated weekday name |
|
%A | full weekday name |
|
%b | abbreviated month name |
|
%B | full month name |
|
%c | locale's appropriate date and time representation |
|
%C | default date and time format |
|
%d | day of month - 01 to 31 |
|
%D | date as %m/%d/%y |
|
%e | day of month - 1 to 31 (single digits are preceded by a blank) |
|
%h | abbreviated month name (alias for %b) |
|
%H | hour - 00 to 23 |
|
%I | hour - 01 to 12 |
|
%j | day of year - 001 to 366 |
|
%m | month of year - 01 to 12 |
|
%M | minute - 00 to 59 |
|
%n | insert a newline character | |
%p | string containing AM or PM |
|
%r | time as %I:%M:%S %p |
|
%R | time as %H:%M |
|
%S | second - 00 to 61 |
|
%t | insert a tab character | |
%T | time as %H:%M:%S |
|
%U | week number of year (Sunday is the first day of the week) - 00 to 53 |
|
%w | day of week - Sunday=0 |
|
%W | week number of year (Monday is the first day of the week) - 00 to 53 |
|
%x | Country-specific date format |
|
%X | Country-specific time format |
|
%y | year within century - 00 to 99 |
|
%Y | year as CCYY (4 digits) |
|
%Z | timezone name |
|
Computer Technology Documentation Project |