Forum Moderators: phranque

Message Too Old, No Replies

Easy SSI Question

         

Rightz

9:59 am on Apr 12, 2006 (gmt 0)

10+ Year Member



Basically

(1)

is it true that if I have a menu on each page I can simply use this line:

<!--#include virtual="menu.html" -->

and an html page with the menu on it

and I'll be able to change the menu on each page by simply altering menu.html?

...

(2)
Also does this slow down the page loading significatly? Is this bad? If so is it difficult to parse it somehow (very ignorant here)? I've read something about htmlaccess or something... please explain!

mikesmith76

11:36 am on Apr 12, 2006 (gmt 0)

10+ Year Member



yup thats correct, all of the sites i develop have includes for the main html structure as it saves a lot of programming effort. And unless your server is powered by hamsters you will not notice any difference in page loading speed.

You may need to use a .shtml extension for pages using includes, or make some changes to your .htaccess file depending on how your server is set up. Are you on a shared or dedicated server?

Rightz

1:15 pm on Apr 12, 2006 (gmt 0)

10+ Year Member



I'm not sure. Finding out for this on behalf of a friend. Hes hosts through 3ix which i think are owned by go daddy. I think he pays per domain.