Search billions of records on Ancestry.com
   

#include

There is various information that is often included in HTML documents, by necessity or by conforming to "good" practice: a copyright notice, a link to the content author's name and e-mail address, organization's name (if applicable). Such information is usually repeatitive. For large-scale sites, there is a lot of work required to enter this information on every page. Also, when the information changes, it (1) becomes a formidable task to make the corresponding changes on every page, and (2) increases the chance of introducing errors, as a result. By use of SSI's, such tasks can be readily automated and associated problems can be considerably reduced.

#echo

The echo directive returns the value of special SSI variables as well as other environment variables. Any dates are printed subject to the currently configured timefmt. The only parameter to this directive is var, whose value is the name of the variable you wish to echo.

All environment variables that are available to CGI programs are also available to SSI directives. There are also six environment variables that are exclusively available to SSI directives: DATE_GMT, DATE_LOCAL, DOCUMENT_NAME, DOCUMENT_URI, LAST_MODIFIED, and QUERY_STRING_UNESCAPED.

See the variables

#config

 

CODEWhat you get
%a abbreviated weekday name - Mon
%A full weekday name - Monday
%b abbreviated month name> - Jul
%B full month name - July
%c locale's appropriate date and time representation - Mon Jul 22 18:22:15 2002
%C default date and time format - 20
%d day of month - 01 to 31 - 22
%D date as %m/%d/%y - 07/22/02
%e day of month - 1 to 31 (single digits are preceded by a blank) - 22
%h abbreviated month name (alias for %b) - Jul
%H hour - 00 to 23 - 18
%I hour - 01 to 12 - 06
%j day of year - 001 to 366 - 203
%m month of year - 01 to 12 - 07
%M minute - 00 to 59 - 22
%n insert a newline character -
%p string containing AM or PM - PM
%r time as %I:%M:%S %p - 06:22:15 PM
%R time as %H:%M - 18:22
%S second - 00 to 61 - 15
%t insert a tab character -
%T time as %H:%M:%S - 18:22:15
%U week number of year (Sunday is the first day of the week) - 00 to 53 - 29
%w day of week - Sunday=0 - 1
%W week number of year (Monday is the first day of the week) - 00 to 53 - 29
%x Country-specific date format - 07/22/02
%X Country-specific time format - 18:22:15
%y year within century - 00 to 99 - 02
%Y year as CCYY (4 digits) - 2002
%Z timezone name - MDT
http://freepages.computers.rootsweb.ancestry.com/~elsi/SSI-commands.html Last modified Monday, July 22, 2002