(SSI) After Include One File, No More Formatting

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
sane993
Forum Newbie
Posts: 22
Joined: Thu Jan 16, 2003 9:44 pm

(SSI) After Include One File, No More Formatting

Post by sane993 »

Hello. Very Simple Script

Code: Select all

<HTML>
<HEAD>
<TITLE> Bob </TITLE>
</HEAD>

<BODY>
<!--#include file="bob.htm" -->
<!--#include file="numbers.php" -->
</BODY>
</HTML>
It includes bob.htm fine. But after Bob nothing is formatted anymore. Even when I throw in a hundred <BR> or even <HR> tags after

Code: Select all

<!--#include file="bob.htm" -->
nothing happens, like it dies during bob.htm. Bob.htm is just a few tables and start with <TABLE> and ends with </TABLE> (I'm pretty sure I dont need to include <HTML><HEAD> etc..

Any help?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have you checked the source of the outputted page?

Mac
sane993
Forum Newbie
Posts: 22
Joined: Thu Jan 16, 2003 9:44 pm

Post by sane993 »

I did just then and it ends at the end bob.htm therefore it doens't go on to formatting numbers.php or doesn't even finish the main script (</BODY></HTML>) which is very strange. I tried swapping the include files around so they were included in a different order and the same thing....at end the first file it dies.
sane993
Forum Newbie
Posts: 22
Joined: Thu Jan 16, 2003 9:44 pm

Post by sane993 »

Okay I worked out the solution. It was because the file extension was .htm instead of .htm :? Thanks for help Guys :P
Post Reply