Server Side Includes don't work
-
435pJJau251
- Posts: 44
- Joined: 17 Jun 11
- Location: China
- Trust:
19 Jul 11 6:18 am
Server Side Includes don't work
So you know how you can link a stylesheet to every page so you only have to change it once?
Well I need that same idea only for my menus and other stuff that will be on every page so that I don't always have to go on every single page and change things.
I read and found Server Side Includes but they don't work. I'm not stupid, I know I did it right. It just won't work on my computer.
What else can I use to do that and where can I go to learn it?
Well I need that same idea only for my menus and other stuff that will be on every page so that I don't always have to go on every single page and change things.
I read and found Server Side Includes but they don't work. I'm not stupid, I know I did it right. It just won't work on my computer.
What else can I use to do that and where can I go to learn it?
-
essexboyracer
- Posts: 130
- Joined: 02 May 11
- Location: Great Britain
- Trust:
19 Jul 11 5:14 pm
SSI Includes Wikipedia page http://en.wikipedia.org/wiki/Server_Side_Includes
Always check that a) the file header.html actually exists and b) that the path to header.html is correct. Most programming languages have this functionality built in, do you know what is running on your server programming wise? PHP, ASP etc?
When you say "work on my computer" - how are you testing this? Are you using the SSI calls on a webserver or locally on your computer at home?
- Code: Select all
<!--#include virtual="header.html" -->
Always check that a) the file header.html actually exists and b) that the path to header.html is correct. Most programming languages have this functionality built in, do you know what is running on your server programming wise? PHP, ASP etc?
When you say "work on my computer" - how are you testing this? Are you using the SSI calls on a webserver or locally on your computer at home?
