|
[an error occurred while processing this directive] |
|
||
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 |
Sun |
| %A | full weekday name |
Sunday |
| %b | abbreviated month name |
Jan |
| %B | full month name |
January |
| %c | locale's appropriate date and time representation |
Sun Jan 18 09:04:16 2026 |
| %C | default date and time format |
20 |
| %d | day of month - 01 to 31 |
18 |
| %D | date as %m/%d/%y |
01/18/26 |
| %e | day of month - 1 to 31 (single digits are preceded by a blank) |
18 |
| %h | abbreviated month name (alias for %b) |
Jan |
| %H | hour - 00 to 23 |
09 |
| %I | hour - 01 to 12 |
09 |
| %j | day of year - 001 to 366 |
018 |
| %m | month of year - 01 to 12 |
01 |
| %M | minute - 00 to 59 |
04 |
| %n | insert a newline character | |
| %p | string containing AM or PM |
AM |
| %r | time as %I:%M:%S %p |
09:04:16 AM |
| %R | time as %H:%M |
09:04 |
| %S | second - 00 to 61 |
16 |
| %t | insert a tab character | |
| %T | time as %H:%M:%S |
09:04:16 |
| %U | week number of year (Sunday is the first day of the week) - 00 to 53 |
03 |
| %w | day of week - Sunday=0 |
0 |
| %W | week number of year (Monday is the first day of the week) - 00 to 53 |
02 |
| %x | Country-specific date format |
01/18/26 |
| %X | Country-specific time format |
09:04:16 |
| %y | year within century - 00 to 99 |
26 |
| %Y | year as CCYY (4 digits) |
2026 |
| %Z | timezone name |
NZDT |
| Computer Technology Documentation Project |
Jim A. Creak
Last modified:
16 September 2025.
[an error occurred while processing this directive]
© JACSoft Programming Ltd.