Forum Moderators: coopster

Message Too Old, No Replies

SSI help

works on some pages, but not others

         

conroy

4:12 pm on Dec 17, 2003 (gmt 0)

10+ Year Member



Hello all

I copied and pasted some SSI code into all of my pages for a copyright footer. But, it is only showing on some of my pages. I know the server supports it because it is showing on some pages. I just don't understand how if I copied and pasted the same code onto every page why it would show up on some but not others? On the ones that it doesn't work on in place of the footer it has [include.htm] printed out in text form.

Any ideas? thanks

jatar_k

4:40 pm on Dec 17, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



have you checked to see if the path to the file is right for every page? It should be root relative, I would think. Something like

/dir/include.htm or /include.htm

Dp all of the files have the same extension? They will need to since SSI is usually enabled for a specific extension.

conroy

7:23 pm on Dec 17, 2003 (gmt 0)

10+ Year Member



Hi

All of the pages are in root, as is the include file. And all files end with .html, works on some but not others :(

Thanks for the suggestions

Philosopher

7:34 pm on Dec 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just curious, did you copy and paste the code using a text editor, or something like Frontpage?

Some editors like Frontpage can do some strange things to the code during a copy/paste sometimes.

Birdman

7:40 pm on Dec 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sounds like it could be a simple typo. Things I would look for:

  1. Missing or malformed php brackets. (<?php code here ?>)
  2. Missing quotes around the file path. include("path/to/file.txt")

A simple include should read like:

<?php
include();
?>

Regards,
Birdman