|
|
|
||
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 |
Wed |
| %A | full weekday name |
Wednesday |
| %b | abbreviated month name |
Sep |
| %B | full month name |
September |
| %c | locale's appropriate date and time representation |
Wed Sep 8 08:53:24 2010 |
| %C | default date and time format |
20 |
| %d | day of month - 01 to 31 |
08 |
| %D | date as %m/%d/%y |
09/08/10 |
| %e | day of month - 1 to 31 (single digits are preceded by a blank) |
8 |
| %h | abbreviated month name (alias for %b) |
Sep |
| %H | hour - 00 to 23 |
08 |
| %I | hour - 01 to 12 |
08 |
| %j | day of year - 001 to 366 |
251 |
| %m | month of year - 01 to 12 |
09 |
| %M | minute - 00 to 59 |
53 |
| %n | insert a newline character | |
| %p | string containing AM or PM |
AM |
| %r | time as %I:%M:%S %p |
08:53:24 AM |
| %R | time as %H:%M |
08:53 |
| %S | second - 00 to 61 |
24 |
| %t | insert a tab character | |
| %T | time as %H:%M:%S |
08:53:24 |
| %U | week number of year (Sunday is the first day of the week) - 00 to 53 |
36 |
| %w | day of week - Sunday=0 |
3 |
| %W | week number of year (Monday is the first day of the week) - 00 to 53 |
36 |
| %x | Country-specific date format |
09/08/10 |
| %X | Country-specific time format |
08:53:24 |
| %y | year within century - 00 to 99 |
10 |
| %Y | year as CCYY (4 digits) |
2010 |
| %Z | timezone name |
NZST |
| Computer Technology Documentation Project |
Jim A. Creak
Last modified:
11 September 2007.
© JACSoft Programming Ltd.