View Full Version : Server Side Includes
cancer10
07-27-2006, 08:26 AM
Hello,
Can someone please tell me what is Server Side Includes (SSI), How is .SHTML realeted to it?
and where can I get some basic/advanced tutorials for it?
Thanx
ealbrecht
07-27-2006, 09:08 PM
http://www.google.ca/search?q=ssi+tutorials
Google, it's a wonderful place to find answers to common questions :)
felgall
07-27-2006, 09:30 PM
.shtml is the default suffix that indicates that the page contains server side includes. Only pages with that suffix are usually passed through the processor to replace the include statement with the code to be included. You can of course change the web server configuration to add extra suffixes to the list of those checked for SSI.
belledumonde
07-31-2006, 07:11 AM
im also interested in using SSI for my site. can i still use SSI if i am hosting my site on a free hosting service?
EDIT: just found out i can!
i have some (i think) a simple need for SSI. i tried looking up how on the net, but almost all the tutorials try to tell you how to master it and blah blah blah. cant get to the point.
all i want to know is how to include something like a menu in a page that has cross browser compatibility (if this is even an issue with SSI)
ex. here's my menu
<ul>
<li><a href="something.htm">Link</a></li>
<li><a href="something.htm">Link</a></li>
<li><a href="something.htm">Link</a></li>
<li><a href="something.htm">Link</a></li>
<li><a href="something.htm">Link</a></li>
</ul>
here's my page
<html>
<head><title>My Page</title></head>
<body>
<div id="menu">
i want to include the menu here
</div>
<div id="content">
my text my text my text my text my text my text
</div>
</body>
</html>
what file extension do i save "my menu" and "my page" as? and how do i include the "my menu" in "my page" so that it is compatible with all browsers etc.? do i have to do something like make different folders? insert something in the head etc for this to work?
thanks to anyone who can help! :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.