Castle Web Home

Castle Web Services

  • Web Services Overview
  • Web Site Hosting
  • Additional Services
  • Standard CGI Programs
  • Chat Rooms
  • E-mail and Mailing Lists
  • Advertising Server

    Customer Service

  • Contact Information
  • Frequently Asked Questions
  • Spam
  • Acceptable Use Policy
  • Terms of Service

  •   Server Side Includes

    Castle Web uses Apache 2, a powerful web server that offers excellent server side processing capabilities. All web pages that use the .htm or .html extension have server side processing enabled. If you need to include a document within an HTML document, use .inc as the file extension.

    Server Side Include Configuration Directives

    <!--#config timefmt="%c"-->

    Options:

    • %a Abbreviated weekday name
    • %A Full weekday name
    • %b Abbreviated month name
    • %B Full month name
    • %c Date and time appropriate for locale of server
    • %d Day of month (01-31)
    • %H Hour in 24-hour format
    • %I Hour in 12-hour format
    • %m Month as decimal (01-12)
    • %M Minute as decimal (00-59)
    • %p Current A.M./P.M. indicator
    • %S Seconds (00-59)
    • %U Week of year, Monday as first day of week (00-51)
    • %w Weekday (0-6)
    • %W Week of year, Sunday as first day of week (00-51)
    • %x Date for current locale of server
    • %X Time for current locale of server
    • %y Year without century
    • %Y Year with century
    • %z Time zone
    <!--#config sizefmt="%d bytes"-->
    Server Side Include Directives
    SSI Directive Result on Web Page
     
    <!--#include file="pathname"-->
    Include a file. Included files must have a ".inc" extension on the Castle Web server.
     This text is from an included file: include.inc.
    <!--#flastmod file="pathname"--> 11/02/05 10:51:07
    <!--#echo var="DOCUMENT_NAME"--> ssi.htm
    <!--#echo var="DOCUMENT_URI"--> /ssi.htm
    <!--#echo var="LAST_MODIFIED"--> 11/02/05 10:51:07
    <!--#echo var="DATE_LOCAL"--> 09/08/08 02:41:41
    <!--#echo var="REMOTE_HOST"--> (none)
    <!--#echo var="HTTP_USER_AGENT"--> CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
    <!--#echo var="REFERER"--> (none)
    <!--#echo var="INVALID"--> (none)
    Castle Web Logo