CATEGORY: SSI - Server Side Includes

QUESTION:
I am trying to insert my header file into a CGI script I am running. To do so, I'm using <!--#include virtual="/header.html"-->, however, it's not parsing the HTML for the header document. Instead, it's leaving the SSI code used to try and impliment the header file into the script in raw format. In other words, it's showing <!--#include virtual="/header.html"--> instead of the header's HTML.  How can I get the script of the header document?

ANSWER:
Well, you need to MAKE sure that the file is actully located in the same directory, and is called header.html
AND, you would remove the / as you dont need that if you are calling from same directory :)


Eddie
############################################################

Please be advised that this is a SUPPLEMENTAL Online Manual.

The PRIMARY Online Manual is inside your Online Control Panel... to access it, just click Documentation link at very bottom of Online Control Panel screen.

You should always consult the Online Manual inside your control panel first... and only consult this SUPPLEMENTAL Online Manual as a last resort.

if after consulting the Control Panel Documentation, you still need assistance, please CONTACT SUPPORT

top