Other Server-Side Scripting

ID #15

Do you have Server Side Includes (SSI)?

Applies to: Grid System

We do support Server Side Includes (SSI), but with the directive "IncludesNOEXEC", which means that for security reasons, we do not allow SSI to "exec" other programs. All files ending in .shtml are parsed as SSI files.

Since PHP can do everything that SSI can do, including exec some other programs, we recommend using PHP instead of SSI.

Here are some common SSI commands and their PHP equivalents:

SSI - Include a text file:

PHP equivalent:

SSI - File modification date:

PHP equivalent:

Last update: 2010-09-29 13:39
Author: FAQ Admin
Revision: 1.3

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ

Comment of Anonymous:
We had a problem where our SSI was not including files.

I was naming my include files in my .shtml files with ".inc" extensions. Here is the error i got from the error_log file in logs:

unable to include potential exec "foo.inc" in parsed file /htdocs/foo/bar.shtml

I changed the ".inc" extension to ".html" and it worked fine.
Added at: 2003-01-27 12:51

Comment of Anonymous:
If you're getting this SSI error when trying to include a file:

[an error occurred while processing this directive]

then look for a bad .htaccess directive in the directory where the included file is coming from.

Frontpage makes consistently nonsensical .htaccess directives like:

require member admin

which will cause that error. Just delete such a line in the .htaccess file.

Added at: 2004-04-15 11:37