NAME
CGI::SSI - a perl module for doing SSI processing in CGIs.
SYNOPSIS
use CGI::SSI qw( ssi get_content );
CGI::SSI::allow_exec = 1;
print ssi( $html );
print ssi( get_content( $filename ) );
DESCRIPTION
CGI::SSI is a module which does standard SSI processing on HTML files. It is intended to be used in CGIs, where the output of the CGI is HTML that included SSI directives, but where SSI processing is not being done on this output by the webserver. The standard directives are covered:
- <!--#echo var=(environment_variable)-->
-
- DOCUMENT_NAME
- DOCUMENT_URL
- QUERY_STRING_UNESCAPED
- DATE_LOCAL
- DATE_GMT
- LAST_MODIFIED
- <!--#include (virtual|file)="..."-->
- <!--#fsize file="..."-->
- <!--#flastmod file="..."-->
- <!--#exec (cmd|cgi)="..."-->
-
Note that <!--#exec cmd="..." --> is only supported if the package variable CGI::SSI::allow_exec has been set to true (and will fail in any case if your CGI is running in taint mode, as it should be!). Also, that <!--#exec cgi="..."--> is not currently supported.
- <!--#config (errmsg|timefmt|sizefmt)="..."-->
AUTHOR
Ave Wrigley <Ave.Wrigley@itn.co.uk>
COPYRIGHT
Copyright (c) 2001 Ave Wrigley. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.