SSI trouble

liunx

Guest
Hi. I'm creating some pages using SSI include tags, and for some reason the text isn't showing up. I've gone over this repeatedly, and maybe I'm missing something with my bleary eyes. Any help?<br />
<br />
Here's the code for an example page with the SSI tag, highlighted in red:<br />
<br />
<HTML><br />
<br />
<HEAD><br />
<TITLE>Photos</TITLE><br />
</HEAD><br />
<br />
<BODY BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#FFFFFF" VLINK="#FFFFFF" ALINK="#FFFFFF" ><br />
<CENTER><br />
<TABLE WIDTH="600" BORDER="0" CELLSPACING="0" CELLPADDING="0"><br />
<TR VALIGN=TOP><br />
<br />
<TD WIDTH=490 ALIGN=LEFT COLSPAN="3"><br />
<BR CLEAR=ALL><br />
<IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"images/1/eyes1.jpg" ALIGN=RIGHT ALT="" WIDTH=330 HEIGHT=261 HSPACE=10 VSPACE="0" BORDER="0"><br />
<br />
<br />
<FONT FACE="ARIAL, HELVETICA" SIZE="-1"><A HREF=http://www.webdeveloper.com/forum/archive/index.php/"photos10.htm">Previous</a></font> | <br />
<FONT FACE="ARIAL, HELVETICA" SIZE="-1"><A HREF=http://www.webdeveloper.com/forum/archive/index.php/"photos12.htm">Next </a></font><BR><br />
<blockquote><A HREF=http://www.webdeveloper.com/forum/archive/index.php/"photos10.htm"><IMG SRC="images/parrowl.gif" WIDTH="15" HEIGHT="27" BORDER="0"></A><br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"photos12.htm"><IMG SRC="images/parrowr.gif" WIDTH="15" HEIGHT="27" BORDER="0"></A><BR><BR></blockquote><br />
<br />
<br />
<br />
<br />
<BR><br />
<br />
<br />
<br />
<FONT FACE="ARIAL, HELVETICA" SIZE="-1">Just look at those eyes!<P><br />
<br />
<BR><br />
<BR><br />
<font face=arial size=-2><a href=http://www.webdeveloper.com/forum/archive/index.php/"album.htm">BACK TO FRONT</A></FONT><br />
<br />
</TD><br />
<TD WIDTH=10><br />
</TD><br />
<TD WIDTH=100 ALIGN=LEFT COLSPAN="1"><br />
<br />
<br />
<br />
<!--#include file="rail1.html" --><br />
<br />
<br />
<br />
</TD><br />
</TR><br />
<br />
<TR VALIGN=TOP><br />
</TABLE><br />
</CENTER><br />
<br />
</BODY><br />
</HTML><br />
<br />
<br />
Here's the code of the file "rail1.html", which is the same folder:<br />
<br />
<br />
<br />
<html><br />
<head><br />
</head><br />
<br />
<BODY BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#FFFFFF" VLINK="#FFFFFF" ALINK="#FFFFFF" ><br />
<br />
<B><br />
<font face=arial size=-1><a href=http://www.webdeveloper.com/forum/archive/index.php/"photos.htm">THE EARLY YEARS</A></FONT><br />
</B><br />
<BR><br />
<font face=arial size=-2><a href=http://www.webdeveloper.com/forum/archive/index.php/"photos27.htm">1999-2000</A></FONT><br />
<BR><br />
<font face=arial size=-2><a href=http://www.webdeveloper.com/forum/archive/index.php/"photos44.htm">2001 AND BEYOND</A></FONT><br />
<br />
</body><br />
</html><br />
<br />
<br />
<br />
Thanks. I realize this is basic stuff.<!--content-->1) Yes, the page is .shtml.<br />
<br />
2) Haven't tried yet on a host server. I was having trouble with this when viewing the pages through a browser locally on my PC.<br />
<br />
Thanks.<!--content-->If you are viewing pages locally, without a local server, your browser will not parse server-side content such as SSI, PHP, etc. In order for SSI to work you must run it from a server, either on your host or set one up on your local machine.<br />
<br />
If you use MS Windows, Personal Web Server is available on your installation disk and is sufficient to test PHP (I presume SSI as well).<br />
<br />
Adam<!--content-->
 
Back
Top