Home
 

Customer Support

Search for keywords:

Browse by category:

Do you have Server Side Includes (SSI)?

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:
<!--#include file="sitemap.txt"-->
PHP equivalent:
<? include("sitemap.txt"); ?>

SSI - File modification date:
<!--#config timefmt=" %Y-%m-%d" -->
<!--#echo var="LAST_MODIFIED"-->
PHP equivalent:
<? echo date("Y-m-d", filemtime(basename($SCRIPT_FILENAME))); ?>

User-Contributed Notes

add a note
geo -at- webprose.cc
27-Jan-2003 12:51
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.

15-Apr-2004 11:37
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.


add a note

Related Questions:


Do you support Front Page Extensions?

How do I block access to my site based on certain conditions?

Do you support JSP, Tomcat or Resin?

How do I publish with FrontPage?

Do you offer mod_perl, mod_python, WebDAV, ASP, Cold Fusion or Zope?

Can I have all .html files parsed as .shtml SSI files?

Do you support Ruby on Rails ?

Why doesn't my banner.gif display?

Browse Categories:

Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales


Tiny Modwest Logo         Copyright 2000-2008 by Modwest, Inc.          About Us    |    Blog    |    Jobs    |    Web Design    |    Contact Us