Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<!--#include, ssi, anyone knows how ? 1

Status
Not open for further replies.

horev

Programmer
Feb 17, 2006
18
0
0
IL
Hi !
I uploaded my own web host using the iis windows xp host server.
i wrote a text file using html syntax to write my personal details at the bottom of my web page, calling this file: "mydetails.txt".
Than' at the bottom of my web page (called "index.html") i call that text file using the following syntax:


<!--#include file="mydetails.txt"-->


but nothing happened, my personal details do not show up at the bottom of the pages.
Apparently, i dont really know how to do ssi and i wonder if anyone at this forum could help me with that.
Thanks a lot !
 
Thank you chris !
I guess i'll have to change to Apache server.
 
Why????

IIS does SSI ...
Well, readind the links you attached, far as i could see they were only concerning Apache. I havent yet read all of it though..
 
different Chris [lol]

Your problem from your first post is you are using the wrong file extension for SSI.

the default for ALL webservers is to use [blue][highlight]s[/highlight][/blue]html for SSI pages.


Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
different Chris

Your problem from your first post is you are using the wrong file extension for SSI.
i changed the html pages's extension to shtml, nevertheless, the text file's details didnt show up :-(
 
You might try posting your code (copy and paste) so we can see what you actually have rather than guess.

Lee
 
My 2 files are like those:
[ul]
[li]This is the code contained in: footer.txt
[/li]
Code:
<HR>
<ADDRESS>
This page is Copyright &copy; 200?, your-name-here<BR>
</ADDRESS>
[li]This is the code contained in: index.shtml[/li]
Code:
<html>
<head>
  <title>ssi</title>
</head>

<body>

  <p>
    trying to upload "footer.txt"
  </p>
  <!--#include file="footer.txt"-->
</body>
</html>
[/ul]
all i get is:
trying to upload "footer.txt"
This is ran on iis win xp.
 
I copied and pasted your code into files on my computer, running IIS with XP Pro, and it worked fine. Is footer.txt in the same folder as the page including it?

Lee
 
Have you enabled server side includes in the IIS control panel?
 
Hi trollacious
Is footer.txt in the same folder as the page including it?
Answer is yes.
Hi Andeee
Have you enabled server side includes in the IIS control panel?
I'm not sure about that. i'll look at it again.
Thanks however.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top