SSI does not show up

mauwth

New Member
Messages
2
Reaction score
0
Points
0
Hello,

I want to use SSI ton include the top and bottom section of my website at http://damundus.x10hosting.com/. My user name is mauwth. Here's the source code of my index.html file:

--------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Damundus - Homepage</title>
<link href="styles/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="code/date_clock.js"></script>
</head>

<body style="background-color:#000000" onLoad='date_clock()'>

<div id="centered_on_page">
<table width="756" height="468">
<!--#include file="/home/mauwth/public_html/includes/top.shtml" -->
<tr>
<td width="630" height="315" colspan="2" class="bgcontent">
<div id="page_content">

<!-- begin of page ontent -->

Text<br />

<!-- end of page content -->

</div>
</td>
</tr>
<!--#include file="/home/mauwth/public_html/includes/top.shtml" -->
</table>
</div>

</body>
</html>
--------------------------------------

However, the includes do not show up. What am I missing? I already made the neccessary changes to my .htaccess file:

--------------------------------------
[...]
AddHandler server-parsed .shtml
AddType text/html .shtml
Options Indexes FollowSymLinks Includes
--------------------------------------

I'm out of ideas after playing around with it for 3 hours. :( I appreciate any advice!

Thanks,
Martin
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
just rename your files in php, and do this:

PHP:
<?PHP include("/home/mauwth/public_html/includes/top.shtml"); ?>
where ever you want the "top.shtml"

only "top.shtml" doesnt exist...it is top.js ....you cant include a file that doesnt exist...
 
Last edited:

mauwth

New Member
Messages
2
Reaction score
0
Points
0
Hi,

I was working on my page since I posted this threat and decided to use to include html code via document.write / JavaScript. That way I can look at the result offline on my PC.

Thanks for the PHP tip anyway.

Martin
 
Top