View previous topic :: View next topic |
Author |
Message |
cpenticuff -
Joined: 27 Dec 2004 Posts: 4
|
Posted: Mon Dec 27, 2004 8:30 am Post subject: SSI I think it's set up correctly... but no go |
|
|
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 |
|
 |
Glitch2082 -
Joined: 02 Dec 2004 Posts: 194
|
Posted: Mon Dec 27, 2004 8:36 am Post subject: |
|
|
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 |
|
 |
cpenticuff -
Joined: 27 Dec 2004 Posts: 4
|
Posted: Mon Dec 27, 2004 8:58 am Post subject: comment tags |
|
|
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 |
|
 |
Axis -
Joined: 29 Sep 2003 Posts: 336
|
Posted: Mon Dec 27, 2004 4:38 pm Post subject: |
|
|
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 |
|
 |
cpenticuff -
Joined: 27 Dec 2004 Posts: 4
|
Posted: Mon Dec 27, 2004 7:12 pm Post subject: ? |
|
|
Thanks for the suggestion... but still no luck. |
|
Back to top |
|
 |
crackerjack -
Joined: 19 Jan 2005 Posts: 1 Location: UK
|
Posted: Thu Apr 14, 2005 11:07 am Post subject: |
|
|
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 |
|
 |
|