People wanting to give their WWW files information known to the file system (for example size of the file) or wanting to integrate CGI scripts into HTML pages can do so using so-called Server-side Includes. A small adjustment to the configuration is necesary though. The following like should be added to srm.conf:
AddType application/x-server-parsed-html shtml
In addition, options in the <DIRECTORY> instruction or individual .htaccess files have to include the parameter Includes or IncludesNoExec so that they can find their way into the viewer. The last parameter prevents the opposite of the first, that CGI scripts can send 'something' back - and is therefore more popular for system administration. In the source text, includes are there in the form of a comment:
<!--#command tag="value" -->
where command can be the following: config, echo, include, fsize, flastmod, exec. exec executes a bourne shell script or CGI program. Variables such as the document name or the URL are available to all commands. The date of the last change, for example, can be embedded in two ways:
<!--#flastmod file="diese_datei.shtml"--><!--#echo var="LAST_MODIFIED"-->
Further details are available at NCSA.
Dieser Text ist der Zeitschriften-Ausgabe 06/1996 von iX entnommen.
Parallelprogrammierung - die Kunst der Multi-Core-Nutzung
Agile ALM - agile Praktiken im Application Lifecycle Management
Webentwicklung - Applikationen für mobile Clients