Allstories
01-07-2004, 08:12 PM
I've been trying to design a new layout for my site. I'm not a master of HTML or anything, so not suprisingly, it isn't working. As of now, I'm just trying to get it to work, but all I get is a blank page, and whenever I open an SHTML file, it comes up as a text file. I tried using quotation marks, but it still opens in Notepad. Help?
main.shtml
<HTML>
<HEAD>
<TITLE>SnoodSource 3.0</TITLE>
</HEAD>
<BODY>
<!--#include file="ssi1.shtml" -->
</BODY>
</HTML>
ssi1.shtml
<BODY BGCOLOR="black">
So what's the deal? What exactly am I leaving out?
isi333
01-07-2004, 08:26 PM
Hmm...
SSI is server side scripting. Which means it needs to be executed on a server. So you either need to download apache, or upload to a server, I think. This may or may not help you. You'll need to do it anyway, to make SSI work, but whether or not not being able to open it is the same problem, I don't know.
Christy Marie
01-07-2004, 09:07 PM
Honestly, I'm not an SSI expert, but first, you may want to check to see if your host supports SSI. Second, you may like to change ssi1.shtml to ssi1.txt...
Example...
<!--#include file="ssi1.txt" -->
amicus
01-07-2004, 09:47 PM
the 'body' tag doesn't belong in the include file (ssi1.shtml). the file including (main.shtml) the include file (ssi1.shtml) already contains the 'body' tag.
just to note, all of the above posts are correct.
1. you must upload your pages online to view them properly OR download server software to view them on your computer locally (offline).
2. your host must support the use of SSI.
3. changing the extension of the filename in the include may or maynot be necessary depending on your hosts setup. usually not needed to change.
4. when the included file is inserted, your coding will become "wrong" considering a second starting BODY tag will thus appear.
bellportal
01-08-2004, 10:49 AM
To fix this, you could put the <include> tag before the <body> tag.
To fix this, you could put the <include> tag before the <body> tag.
no, there would still be two opening BODY tags.
bellportal
01-08-2004, 02:17 PM
OK then. You could do the <include> tag and not put another <body> tag in! ;)