Forum Moderators: phranque

Message Too Old, No Replies

Clueless newbie using SSI

         

kf638197

6:07 pm on May 26, 2007 (gmt 0)

10+ Year Member



This will serve as the dummy question of the day. I'm not even sure where to post it, so I apologize if it's in the wrong forum.

I am attempting a huge project whereby I am changing my nav menu to be able to use SSI. I have seemingly done everything correctly. My test page, along with my .htaccess and SSI file has been uploaded and displays fine in the browser (IE) while online. But for some reason, I can't see the changes when I view the test page (a new index) on my local computer. In other words, I can see it fine if I'm viewing the page while it's online. When it's on my computer alone and I'm just viewing it through my website's files, it's completely different. It's not pulling the SSI file into the page. I thought it was because when I added the <!--#include file="navmenu.html"--> to the page, it was a relative URL. I went and changed it to show the absolute URL, thinking it would pull the file from the internet and display the page properly. It does not. I know this most likely makes NO sense. If anyone would care to help this poor dummy (me) in trying to figure out what I'm doing wrong, I'd appreciate it.

Rightz

6:11 pm on May 26, 2007 (gmt 0)

10+ Year Member



SSI wont work when you are using it on your local computer. You need to use something like xampp.

kf638197

8:05 pm on May 26, 2007 (gmt 0)

10+ Year Member



Ok, thank you. At least I know now I wasn't doing anything wrong. Appreciate the response!

le_gber

9:17 am on May 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



SSI stands for Server Side Includes, so if you want to see them on your local computer you need to install a server on it.

If you run an old version of windows or the version pro of XP, you probably have PWS (old version of windows) or IIS(new version of windows). Alternatively you can install Apache on your local machine.

Then, instead put your page in the www (windows PWS or IIS) or htdocs (Apache) folder and accessing bytyping [localhost...] in your browser.

If you are thinking of installing Apache and don't know much about server config / installation, there are some nice bundled installers out there. Try googling for apache2triad or phptriad.