|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
SSI help? **RESOLVED**
I wonder if someone could help me with a problem I have with Server Side Includes (SSI.) I have these files:
index.shtml Code:
<!--#include file="before.txt" --> <p>Some text here</p> <!--#include file="after.txt" --> before.txt Code:
<HTML> <HEAD> <META name="robots" content="index, follow"> <META name="description" content="KukkoBoys - vaskikvintetti vahvistettuna rummuilla"> <META name="keywords" content="kukko boys kukkoboys kukko-boys trumpetti käyrätorvi pasuuna tuuba rummut vaski kvintetti vaskikvintetti musiikki vaskimusiikki lieksa vaskiviikko keikka soitto soittaa"> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <TITLE>KukkoBoys - viralliset kotisivut</TITLE> </HEAD> <BODY> <h1>Testing</h1> <TABLE width="800" height="600" background="art/bg.jpg"> <TR><TD width="800" height="64"> <A href="index.shtml">«Uutisia»</A> <A href="tietoa.shtml">«Tietoa»</A> <A href="kuvat.shtml">«Kuvia»</A> <A href="keikka.shtml">«Tilaa keikka»</A> <A href="yhtotto.shtml">«Ota yhteyttä»</A> </TD></TR> <TR><TD width="800" height="436" valign="top"> after.txt Code:
</TD></TR> <TD width="800" height="64"><FONT size=1>Best viewed with Internet explorer 5 or above or Opera 7 orabove.</FONT></TR> </TABLE> </BODY> </HTML> Something funny happens when I load the page. It does include after.txt but it doesn't include before.txt. What could be the solution? |
|
#2
|
||||
|
||||
|
RE: SSI help?
Some more information. I checked the source of the page in the browser. The first include command was replaced with a blank row! Is there something wrong with the command? How could there be, the other command works?
|
|
#3
|
||||
|
||||
|
RE: SSI help?
What happens if you change the order:
Code:
<!--#include file="after.txt" --> <p>Some text here</p> <!--#include file="before.txt" --> If after.txt still shows up correctly and before.txt doesn't, something is wrong with before.txt. If before.txt shows up but after.txt does not, you've got one strange problem on your hands. |
|
#4
|
||||
|
||||
|
RE: SSI help?
Are you working on a windows server? If you are on a *nix server you don't want to use SSI instead of a PHP(includes) as there is a significant performance hit.
Incidently I uploaded your three files to my server and it appears to have worked correctly so you might have SSI configured incorrectly or there is a typo somewhere. |
|
#5
|
||||
|
||||
|
RE: SSI help?
Honcho, I changed the order. Now both files are included correctly. This might be a configuration issue, but unfortunately it's not my server. It belongs to my ISP and the site is hosted there. And I can't use PHP because the server doesn't have it.
|
|
#6
|
||||
|
||||
|
RE: SSI help? **RESOLVED**
It seems that there was some kind of protection enabled. When I moved the head section and <html> tag to index.shtml it begun to work. Thanks for your help anyway.
|
![]() |
| Viewing: Codewalkers Forums > General > General Chat > SSI help? **RESOLVED** |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|