SSI I think it's set up correctly... but no go

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
cpenticuff
-


Joined: 27 Dec 2004
Posts: 4

PostPosted: Mon Dec 27, 2004 8:30 am    Post subject: SSI I think it's set up correctly... but no go Reply with quote

Ok... first of all:

My apologies for posting another SSI question, there appear to be a million of them on here.

My situation is this, I have an include command inside of an .shtml file:

Code:
<!--#include file="include.txt" -->


the file "include.txt" is in the same directory as the .shtml file.

Includes are enabled inside the console.
.shtml files are listed in the SSI extensions.
The server has been restarted since any changes were made.

The include does not work and the include command appears when I view the source. I also tried adding .html and .htm extensions and renaming the .shtml file to both of these, but there was no change. I tried using an html file instead of a txt file as the included file, but this also did not work.

I am able to include files using php, but I would prefer to use SSI's


I am running Abyss version 1.2.3.0

Any thoughts or suggestions are not only welcomed, but also encouraged...

thanks
Back to top View user's profile Send private message
Glitch2082
-


Joined: 02 Dec 2004
Posts: 194

PostPosted: Mon Dec 27, 2004 8:36 am    Post subject: Reply with quote

I havn't worked with shtml but arn't <!-- lines --> comment lines (html they are at least). If it is then thats like using "// include <stdio.h>" in C :P
_________________
int main() {
cout << "Im Pro Apache";
cin.get();
}
Back to top View user's profile Send private message Send e-mail
cpenticuff
-


Joined: 27 Dec 2004
Posts: 4

PostPosted: Mon Dec 27, 2004 8:58 am    Post subject: comment tags Reply with quote

shtml is not different than html... the "s" is simply to notify the server to parse the file.

In a sense you are correct: <-- stuff --> tags are to indicate, but for some reason, someone chose to make server side includes fall within "comments"

The # tells the server to search for a command to execute, so it sees the include and considers it as a command... except in my case :(

I do see the humor in it though, if someone could explain to me why ssi's appear inside comments, that would be great as well.
Back to top View user's profile Send private message
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Mon Dec 27, 2004 4:38 pm    Post subject: Reply with quote

Hello cpenticuff--

Please try your ssi with a white space after the intial:
<!--

so that the full include looks like this:

<!-- #include file="include.txt" -->

(as opposed to this: <!--#include file="include.txt" -->

Let us know if that works.

Regards,
Axis
Back to top View user's profile Send private message
cpenticuff
-


Joined: 27 Dec 2004
Posts: 4

PostPosted: Mon Dec 27, 2004 7:12 pm    Post subject: ? Reply with quote

Thanks for the suggestion... but still no luck.
Back to top View user's profile Send private message
crackerjack
-


Joined: 19 Jan 2005
Posts: 1
Location: UK

PostPosted: Thu Apr 14, 2005 11:07 am    Post subject: Reply with quote

I have just discovered (after much head-scratching) that
<!-- #include virtual='body.htm' -->
is different to
<!-- #include virtual="body.htm" -->


The former failed, the latter succeeded.

Does this help you ?

CJ
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group