Server Side Includes - DFWstangs Forums
LinkBack Thread Tools Display Modes
post #1 of 3 (permalink) Old 07-14-2003, 09:42 PM Thread Starter
Join Date: Mar 2003
Posts: 1,394
Server Side Includes

Im trying to use SSI because I have a top and bottom that I want to show up on ever page. I made both the top.asp and bottom.asp page, then I have the index.asp. In the index.asp i use the following code:
< html code goes here... blah blah blah... >

I get the following error: The include file 'top.asp' was not found.
/newss/index.asp, line 2

I get the same if I take out the SSI for the top.asp and replace it with the bottom.asp

The weird thing is, I have done this before and just copied and pasted the code and changed the files. Any ideas what could be wrong? The error can be seen at
xtremcoder is offline  
Sponsored Links
post #2 of 3 (permalink) Old 07-15-2003, 04:16 AM
You lookin' at mah EYE?!
DarkWolf's Avatar
Join Date: May 2000
Location: Portland, OR
Posts: 8,316
I'm not seeing any errors on that page.

What my guess would be though, is the way you implement SSI.

Just skimming some info about SSI, it appears the included file needs to be in the same folder as the referencing file. Also you need to see how your server works with SSI, should you use a File include, or a Virtual include, or does it matter?

I personally never use SSI, I prefer the PHP include() or require() functions. Are there no ASP functions to use?

The other problem I can see, is the server might not be set up to natively handle inline SSI, and might be looking for a .shtml, or .shtm extension, and the .asp extension is throwing it off.

Graphic Design / Photography / Web Design
DarkWolf is offline  
post #3 of 3 (permalink) Old 07-15-2003, 09:08 AM
Join Date: Mar 2000
Location: McKinney, TX
Posts: 3,174
I agree with DW's assessment. ASP doesnt have the same include like php, and it really sucks. Thats one of the big reasons I hate working with ASP. I think the newer version do support something like that, but not sure.
chris is offline  
Sponsored Links


Quick Reply

Register Now

In order to be able to post messages on the DFWstangs Forums forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Please enter a password for your user account. Note that passwords are case-sensitive.


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

For the best viewing experience please update your browser to Google Chrome