Some SSI examplesA common mistake users make when first attempting to use SSI is to include a space between the <!-- and the #, perhaps because the construct resembles an HTML comment. It won't work with a space before the command. List of [a-e]*.shtml & test files in this directory: <!--#exec cmd="ls -l [a-e]*.shtml test*" --> -rw-rw-r-- 1 www www 16237 Sep 19 2006 bios.shtml -rw-rw-r-- 1 lundyd www 74064 Jun 3 2006 ev.shtml -rw-rw-r-- 1 lundyd www 106208 Jun 3 2006 events-bak.shtml -rw-rw-r-- 1 www www 87441 Jun 3 2006 events.bak.shtml -rw-rw-r-- 1 lundyd www 33869 Jan 6 19:02 events.shtml -rw-r--r-- 1 lundyd www 4529 Sep 26 2006 test.shtml -rw-r----- 1 lundyd www 14332 Sep 27 2006 test2.shtml -rw-r--r-- 1 lundyd www 69 Oct 1 2004 test2.ssi -rw-r--r-- 1 lundyd www 69 Oct 1 2004 test3.ssi Display the current time using the default date format. Display the current date using date format Day, Month day of month, Year. Specify a different time format. <!--#config timefmt="%a, %b %d %I:%M:%S %P %Z" -->
Use another time format for file modified date. <!--#config timefmt="%l:%M:%S %P, %a, %b. %d, %Y" -->
Show something about your browser: The name of this file is <!--#echo var="DOCUMENT_NAME" --> The DOCUMENT_URI of this file is <!--#echo var="DOCUMENT_URI" --> This file size is <!--#fsize file="test.shtml" --> Several variables are made available to parsed documents. In addition to the CGI variable set, the following variables are made available:
To learn more about SSI, see this very complete tutorial at LearnThat.com. Include a standard footer in each page... <!--#include virtual="include/footer.shtml"--> | |||
|
Search the contents of all the publicly available web pages at www.dma.org/linuxsig/ or archives of our mailing list. Subscribe to our Linux-SIG mailing list for occasional technical correspondence regarding Linux, Unix, & Open Source Software at the Linux-SIG Info Page & read our archives. Check out our other Special Interest Group (SIG) mailing lists here. Users Group Contact: Grant Root 937-274-3378, Dave Lundy 937-426-1132 9 am–10 pm, Gary Turner 937-313-BITS DLUG-contact Web Site Contact: For questions about, or suggestions for our web site, please write to DLUG-web | |||
|
DLUG | DMA | Events | Facebook | Feedback | Files | Install | Links | People | Upload | |||
|
|
Thanks to Stephen Sullivan, at SPS Interactive Design,
for our new logo and site design suggestions. Site maintained by DLUG web team
This page was last modified 02:30 pm Tue, Sep 26, 2006 EDT.
|
| |