Server side include test
Well this is just a little test to see if I can get sever-side includes
working. An important thing to remember when setting this up is that the
page with the SSI in must have execute permissions. Currently it is not
required to use the extension .shtml
(page last updated: 06/02/2000).
Server Side Environment Variables
- CONTENT_LENGTH is '0'
- DATE_LOCAL is 'Monday February 06 2012'
- DATE_GMT is 'Monday February 06 2012'
- DOCUMENT_NAME is 'F:\RPXXFE7GU1EP681H\www.chasmer.com\Construct\ssinc.shtml'
- DOCUMENT_URL is 'Variable 'DOCUMENT_URL' cannot be found
'
- HTTP_REFERER is 'Variable 'HTTP_REFERER' cannot be found
'
- HTTP_HOST is 'www.chasmer.com'
- HTTP_COOKIE is 'Variable 'HTTP_COOKIE' cannot be found
'
- LAST_MODIFIED is 'Tuesday August 05 2003'
- QUERY_STRING is ''
- QUERY_STRING_UNESCAPED is ''
- REQUEST_METHOD is 'GET'
- REMOTE_ADDR is '38.107.179.230'
- REMOTE_ADDRESS is 'Variable 'REMOTE_ADDRESS' cannot be found
'
- REMOTE_HOST is '38.107.179.230'
- SERVER_ADMIN is 'Variable 'SERVER_ADMIN' cannot be found
'
- SCRIPT_NAME is '/Construct/ssinc.shtml'
Execute a CGI
CGI being exec'd ...
#!/bin/perl
# Name: test.pl
# Author: Robert R. Chasmer (KAOS 95)
# Created: 03/02/95
# Last changed: 28/11/96
# Job: Obvious isn't it?
# Changes: Irelevant!
print "Content-Type: text/html\n\n";
print "Hello World!\n";
... CGI exec completed.
Second CGI being exec'd ...
Failed to execute CGI : Win32 Error Code = 2
... Second CGI exec completed.
Virtual HTML include
Child HTML include start...
Chas's server-side include (child)
A message from the child
Welcome to the body text for the child. Anyway, got to go, bye!!!
... Child HTML include end.
Other SSI commands
FSIZE
fsize start...
1
, or
261 bytes
... fsize end.
FLASTMOD
flastmod start...
Tuesday August 05 2003
, or
Cannot perform flastmod(): Win32 Error Code = 87
... flastmod end.
Useful SSI links...
Robert R. Chasmer (chas@kaosuk.co.uk) -
(C) KAOS 1995-2000.