Click to See Complete Forum and Search --> : SSI for a newbie


Duke Will
03-18-2004, 11:57 AM
I don't know what I'm doing with SSI but I have a very basic page that I have created for three dealers of a product. Each time a new dealer wants one, I have to manually edit the "template" html page (the first guy's page that I keep amending for each new dealer) and make changes for domain name (for title), phone, links, company description paragraph, etc. for the new dealer I am creating.

I figured I could use SSI. As a test, I wrote a phone.inc text file and all that is in it is a phone number, that's it. I duped my html page and put an SSI include statement, where I wanted the phone number to go. As a test. (This was within a H2 heading tag, if that matters.)

I uploaded both to the same HTDOCS directory. I called up www.mysite.com/index.shtml and the page came up but it was missing the phone number.

I renamed the original, index.html to index_old.html in case there was some kind of conflict going on and then just called up www.mysite.com and same thing happened (no phone number).

If I hit www.mysite.com and the index is a .shtml file, if SSI is working on my server, it will pull up that index page, right? Or what else could be wrong. Thanks for help.

PeOfEo
03-18-2004, 12:01 PM
what code are you using for the include?

Duke Will
03-18-2004, 12:24 PM
<!--#include file="phone.inc"-->

Then I thought maybe the <!-- tags shouldn't be there, and I removed them but that didn't work either. It was just blank where the phone number should be.

EDIT: Here is the whole section:

<h2><blockquote>Please write this down now...<br>
Our Toll-FREE number:<br>
<font color="red"><!--#include file="phone.inc"--></font>

</blockquote></h2>

PeOfEo
03-18-2004, 12:27 PM
use

<!-- #Include virtual="phone.inc" -->

instead.

Edit: AHHHH font tags! This will not affect how your include tags work, but you should ditch them. Thats a whole new subject though.

Duke Will
03-18-2004, 12:31 PM
Okay, I'll figure out how to get rid of FONT tag but I did what you said with the virtual thingie and it still didn't work. How can I tell if my server is okay with SSI?

PeOfEo
03-18-2004, 01:22 PM
should be in the host faq. Who is your host?

Duke Will
03-18-2004, 03:38 PM
We lease our own server that we have dozens of domains on from RackSpace.com. My tech guy is unavailable at the present time. I don't know much about that end of it.

PeOfEo
03-18-2004, 04:48 PM
rackspace.com looks like it supports it all, they run windows and linux.