Server Side Include (SSI) Help -Easy One I Hope

N

newsgroups

What I'm trying to do is for each page I want to have a dynamic include
that is derived from the current document name.

Example, for a page named foo.shtml I want to derive the following
include statement:

<!--#include virtual="/foodir/foo_incl.htm" -->


So <!--#echo var="DOCUMENT_NAME" --> gives me the filename (foo.shtml)
and what I need to do is take the foo bit and append _incl.htm to give
foo_incl.htm and then use this in an SSI include.

Any help most welcome and appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top