mesman00
January 5th, 2002, 22:47
ok, i read the post on ssi below, with the inclue virtual crap, this is what i'm doing, and it doesn't work for some reason:
first, i make a table that looks like this:
<table border="1" cellspacing="0" cellpadding="0" width="760" height="300" align="center" bgcolor="#FFFFFF" background="">
<tr>
<td>
</td
</tr>
</table>
then, i opened a new txt file and wrote this in it:
<html>
<a href="mainframe.html">Mainframe</a>
<a href="news.html">News</a>
<a href="downloads.html">Downloads</a>
</html>
i saved this file as main.txt
then, i changed the table to this:
<table border="1" cellspacing="0" cellpadding="0" width="760" height="300" align="center" bgcolor="#FFFFFF" background="">
<tr>
<td>
<!--#include file="main.txt" -->
</td
</tr>
</table>
ok, so is that right?? i guess it can't be because when i open the HTML file with the table in it nothing shows up, but the table just stays blank instead. so, if i could get some help, that would be great.
after some more research, i realized i had to chagne the file extension to shtml. so i did this, and even copied the exact text from at turorial, and it still didn't work i'll show ya what i put in:
header.txt:
fleece was white
marylamb.shtml:
<html>
<head><title>Mary's lamb</title></head>
<body>
Mary had a little lamb, it's <!--#include file="header.txt" --> as snow.
</body>
</html>
browser output:
Mary had a little lamb, it's as snow.
as you can see, the #include statement was totally overlooked. is there something i need to enable in internet explorer so it will show properly. im stumped here.
RatTrap
January 7th, 2002, 23:42
lol.. you have some screwd up stuff going on.. also.. the webserver your on might not let you use SSIs..
some rules:.. (can change depending on the settings on the server)
the included file can use any extension.. i personally use .htm.. so that i can check that they are working from my browser.. wich might be a good thing to test b4 including the file..
you don't need to add any extra tags.. i see you added the <html> </html> tags to your code.. and that does not need to be there.. it's not wrong.. but it's not right eather.. it's just taking up space..
"include virtual" is used when your including a file and starting from the root of your web directory.. like..
<!-- #include virtual="/images/emu/lala/info.htm" -->
would include a file that is in:
%your_website_url_here%/images/emu/lala/info.htm
"include file" is diferent.. lets say that from the file info.htm located in the directory
%your_website_url_here%/images/emu/lala/
you want to include yet another file
%your_website_url_here%/images/babes/fatso.htm
then you can do it like so using file:
<!-- #include file="../../babes/fatso.htm" -->
or using virtual:
<!-- #include file="/images/babes/fatso.htm" -->
also something to think about.. is that on some servers.. the tag can be very picky..
for instance on some servers you'll have to type it like this..
<!-- #include file="fatso.htm" -->
with spaces between the <!-- and the # and the " and the -->..
and on some servers it won't work unless you have no spaces in those same places.. so you gotta know if your webhost lets you use SSIs.. and you have to figure out how they want you to use them.. rarelly.. they make you use it diferently.. i've had to use "src" instead of file or virtual once.. but i'm guessing that is extinct coz i've never seen it again..
ok.. this was long.. but i hope it clarifies.. i'm sure there's lots i'm not typing in but this is long enugh for now hehe :)..
mesman00
January 8th, 2002, 01:37
thanks for the help, and /babes/fatso.html, thats is a funny example
vBulletin v3.6.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.