Forum Moderators: phranque

Message Too Old, No Replies

SSI Help Needed

         

Emperor

6:42 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



Hi guys,

I tried this but nothing happens:

text.htm

<p>SSI Text</p>

testpage.htm

...
...
<!--#include virtual="text.htm" -->
...
...

I have a virtual hosting account. Maybe I have to set something in the .htaccess file? Does the text.htm file have to have certain file attributes? What should I try to get it to work?

Thanks.

birdstuff

8:27 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



You need to give testpage the extension .shtml

testpage.shtml

physics

1:04 am on Jul 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or you can parse .html files for SSI. See Setting up SSI to inject text and html code [webmasterworld.com]

kaled

9:25 am on Jul 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some servers implement the so-called "x-bit hack". In this case, SSI is enabled on a per-file basis by setting the execute bit for the file.

I don't know how many servers implement this, but it seems the perfect solution to the problem.

Kaled.