General Chat
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsGeneralGeneral Chat

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old August 12th, 2003, 05:22 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,323 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 20014 Folding Title: Starter FolderFolding Points: 20014 Folding Title: Starter Folder
Time spent in forums: 6 Days 10 h 53 sec
Reputation Power: 4
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?

Reply With Quote
  #2  
Old August 12th, 2003, 05:25 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,323 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 20014 Folding Title: Starter FolderFolding Points: 20014 Folding Title: Starter Folder
Time spent in forums: 6 Days 10 h 53 sec
Reputation Power: 4
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?

Reply With Quote
  #3  
Old August 12th, 2003, 06:04 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 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.

Reply With Quote
  #4  
Old August 12th, 2003, 08:36 PM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
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.




Reply With Quote
  #5  
Old August 13th, 2003, 09:30 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,323 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 20014 Folding Title: Starter FolderFolding Points: 20014 Folding Title: Starter Folder
Time spent in forums: 6 Days 10 h 53 sec
Reputation Power: 4
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.

Reply With Quote
  #6  
Old August 13th, 2003, 10:22 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,323 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 20014 Folding Title: Starter FolderFolding Points: 20014 Folding Title: Starter Folder
Time spent in forums: 6 Days 10 h 53 sec
Reputation Power: 4
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsGeneralGeneral Chat > SSI help? **RESOLVED**


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT