16 Replies Latest reply on Jul 24, 2007 7:38 AM by ndeklotz

    General SSI question/problem

    ndeklotz
      I am having trouble getting a server-side include to appear when I use an .inc file

      <!--#include virtual = "/infiles/footer.inc" -->

      But it does work when I use a .htm

      <!--#include virtual = "/infiles/footer.htm" -->

      It is an apache server, but I've never ran into this before...is it a coding error? Anyone have any suggestions?

      Thanks-
      nd
        • 1. Re: General SSI question/problem
          ~Billy~ Level 1
          You need to save every page (the ssi pages and the pages which will use the ssi also) as SHTM or SHTML, not htm or html. For example - index.shtml or ssi.shtml
          • 2. Re: General SSI question/problem
            ndeklotz Level 1
            The pages containing the ssi have the proper page extensions (ie .shtml) but I can only get the include files that are .htm's to work,

            <!--#include virtual = "/infiles/footer.htm" -->

            the footer appears, but when I use

            <!--#include virtual = "/infiles/footer.inc" -->

            I get the default error message...

            [an error occurred while processing this directive]

            Can anyone think of why the .inc files are not showing? Is it a server issue or a coding issue?

            Thanks,
            nd

            • 3. Re: General SSI question/problem
              Level 7
              Pages that contain includes must use shtm or shtml extensions. That part is
              true. However the include files can be whatever extension you wish - eg:
              footer.foo. It makes no difference UNLESS the include page contains
              additional includes. Then you would use shtm/shtml extensions for both.

              Hope this makes sense,

              --Nancy O.
              Alt-Web Design & Publishing
              www.alt-web.com

              "~Billy~" <webforumsuser@macromedia.com> wrote in message
              news:f82sfc$5sf$1@forums.macromedia.com...
              > You need to save every page (the ssi pages and the pages which will use
              the ssi also) as SHTM or SHTML, not htm or html. For example - index.shtml
              or ssi.shtml


              • 4. Re: General SSI question/problem
                Level 7
                No, you don't. It doesn't matter what you call the pages being included -
                you can use my favorite extension, *.monkeybutt, if you want for the
                fragment files. But the parent files MUST be named with something that will
                trigger a server parse....

                --
                Murray --- ICQ 71997575
                Adobe Community Expert
                (If you *MUST* email me, don't LAUGH when you do so!)
                ==================
                http://www.dreamweavermx-templates.com - Template Triage!
                http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                ==================


                "~Billy~" <webforumsuser@macromedia.com> wrote in message
                news:f82sfc$5sf$1@forums.macromedia.com...
                > You need to save every page (the ssi pages and the pages which will use
                > the ssi also) as SHTM or SHTML, not htm or html. For example - index.shtml
                > or ssi.shtml


                • 5. Re: General SSI question/problem
                  Level 7
                  Something is quite strange there. The file named "footer.inc" should be
                  included just fine.

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (If you *MUST* email me, don't LAUGH when you do so!)
                  ==================
                  http://www.dreamweavermx-templates.com - Template Triage!
                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                  http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                  ==================


                  "ndeklotz" <webforumsuser@macromedia.com> wrote in message
                  news:f82s83$5hd$1@forums.macromedia.com...
                  >I am having trouble getting a server-side include to appear when I use an
                  >.inc
                  > file
                  >
                  > <!--#include virtual = "/infiles/footer.inc" -->
                  >
                  > But it does work when I use a .htm
                  >
                  > <!--#include virtual = "/infiles/footer.htm" -->
                  >
                  > It is an apache server, but I've never ran into this before...is it a
                  > coding
                  > error? Anyone have any suggestions?
                  >
                  > Thanks-
                  > nd
                  >


                  • 6. Re: General SSI question/problem
                    Level 7
                    .oO(ndeklotz)

                    >The pages containing the ssi have the proper page extensions (ie .shtml) but I
                    >can only get the include files that are .htm's to work,
                    >
                    > <!--#include virtual = "/infiles/footer.htm" -->
                    >
                    > the footer appears, but when I use
                    >
                    > <!--#include virtual = "/infiles/footer.inc" -->
                    >
                    > I get the default error message...
                    >
                    > [an error occurred while processing this directive]

                    I came across this issue a while ago on a server whose configuration I
                    didn't have control over. Actually I don't know what caused this, since
                    it's very strange. The file extension of the included file shouldn't
                    matter, but in some obscure cases it does ...

                    Micha
                    • 7. Re: General SSI question/problem
                      Level 7
                      Can you show us the included, inc, file?


                      --

                      E. Michael Brandt

                      www.divaHTML.com
                      divaGPS | divaFAQ

                      www.valleywebdesigns.com
                      JustSo PictureWindow

                      --


                      Murray *ACE* wrote:
                      > Something is quite strange there. The file named "footer.inc" should be
                      > included just fine.
                      >

                      • 8. Re: General SSI question/problem
                        ndeklotz Level 1
                        The footer.inc is just an html file with a table and cells and formatting, nothing out of the ordinary and the footer.htm is the exact same file with the same code.

                        Judging off of Micha's response, I'm guessing it is a server issue vs. an html issue and look in that direction, and I'm not controlling the server. But will check on their end.

                        If any server savvy folks have any suggestions, I'd love to hear them, as it is an apache box, but I've never recalled having to list extensions that can be used or what file to even access this in...

                        Thanks for the input...
                        • 9. Re: General SSI question/problem
                          Level 7
                          On Mon, 23 Jul 2007 18:36:28 +0000 (UTC), "~Billy~"
                          <webforumsuser@macromedia.com> wrote:

                          >You need to save every page (the ssi pages and the pages which will use
                          >the ssi also) as SHTM or SHTML, not htm or html. For example -
                          >index.shtml or ssi.shtml

                          That's not true. Pages that will include other files should be named
                          with an extension that the server will recognize as one that needs to be
                          parsed. On Apache, .shtml will normally do it. The page that is to be
                          included in other pages can be named anything.

                          Gary
                          • 10. Re: General SSI question/problem
                            Level 7
                            Okay, I was asking case there was a convergence of two things:

                            1) if your included file contained another include statement

                            2) AND if your server was configured to parse .htm files just as it does
                            .shtml.

                            Since you now way that there are no include directives within the
                            included file, then I agree that in all likelihood there is a server
                            issue here. It must might be it is (mis)configured to exclude the use
                            of the .inc extension.

                            --

                            E. Michael Brandt

                            www.divaHTML.com
                            divaGPS | divaFAQ

                            www.valleywebdesigns.com
                            JustSo PictureWindow

                            --


                            ndeklotz wrote:
                            > The footer.inc is just an html file with a table and cells and formatting,
                            > nothing out of the ordinary and the footer.htm is the exact same file with the
                            > same code.
                            >
                            > Judging off of Micha's response, I'm guessing it is a server issue vs. an html
                            > issue and look in that direction, and I'm not controlling the server. But will
                            > check on their end.
                            >
                            > If any server savvy folks have any suggestions, I'd love to hear them, as it
                            > is an apache box, but I've never recalled having to list extensions that can be
                            > used or what file to even access this in...
                            >
                            > Thanks for the input...
                            >
                            • 11. Re: General SSI question/problem
                              Level 7

                              "ndeklotz" <webforumsuser@macromedia.com> wrote in message
                              news:f834am$f9q$1@forums.macromedia.com...
                              > The footer.inc is just an html file with a table and cells and formatting,
                              > nothing out of the ordinary and the footer.htm is the exact same file with
                              > the
                              > same code.

                              No <head></head> in those include files, right, but just the HTML? I doubt
                              that's causing the problem, but just in case..


                              --
                              Patty Ayers | Adobe Community Expert
                              www.WebDevBiz.com
                              Free Articles on the Business of Web Development
                              Web Design Contract, Estimate Request Form, Estimate Worksheet
                              --


                              • 12. Re: General SSI question/problem
                                Level 7
                                Well not in this case as he said that with a .htm extension the include
                                worked fine, just not when the .htm was changed to .inc.


                                --

                                E. Michael Brandt

                                www.divaHTML.com
                                divaGPS | divaFAQ

                                www.valleywebdesigns.com
                                JustSo PictureWindow

                                --


                                P@tty Ayers ~ACE wrote:
                                > "ndeklotz" <webforumsuser@macromedia.com> wrote in message
                                > news:f834am$f9q$1@forums.macromedia.com...
                                >> The footer.inc is just an html file with a table and cells and formatting,
                                >> nothing out of the ordinary and the footer.htm is the exact same file with
                                >> the
                                >> same code.
                                >
                                > No <head></head> in those include files, right, but just the HTML? I doubt
                                > that's causing the problem, but just in case..
                                >
                                >
                                • 13. Re: General SSI question/problem
                                  Level 7
                                  On Mon, 23 Jul 2007 20:22:47 -0400, E Michael Brandt
                                  <michael@valleywebdesigns.com> wrote:

                                  >Well not in this case as he said that with a .htm extension the include
                                  >worked fine, just not when the .htm was changed to .inc.

                                  It would be interesting to browse to the .inc file and see what
                                  content-type and/or other headers are sent.

                                  Gary
                                  • 14. Re: General SSI question/problem
                                    Level 7
                                    I was wondering if that might be the cause.....

                                    --
                                    Murray --- ICQ 71997575
                                    Adobe Community Expert
                                    (If you *MUST* email me, don't LAUGH when you do so!)
                                    ==================
                                    http://www.dreamweavermx-templates.com - Template Triage!
                                    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                    http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
                                    ==================


                                    "Gary White" <reply@newsgroup.please> wrote in message
                                    news:o50ba3hjk2aeirhf45sni1bopautuvlmgt@4ax.com...
                                    > On Mon, 23 Jul 2007 20:22:47 -0400, E Michael Brandt
                                    > <michael@valleywebdesigns.com> wrote:
                                    >
                                    >>Well not in this case as he said that with a .htm extension the include
                                    >>worked fine, just not when the .htm was changed to .inc.
                                    >
                                    > It would be interesting to browse to the .inc file and see what
                                    > content-type and/or other headers are sent.
                                    >
                                    > Gary


                                    • 15. Re: General SSI question/problem
                                      Level 7
                                      good thought.

                                      --

                                      E. Michael Brandt

                                      www.divaHTML.com
                                      divaGPS | divaFAQ

                                      www.valleywebdesigns.com
                                      JustSo PictureWindow

                                      --

                                      Murray *ACE* wrote:
                                      > I was wondering if that might be the cause.....
                                      >

                                      • 16. Re: General SSI question/problem
                                        ndeklotz Level 1
                                        Below is the code for the footer.inc and footer.htm...(I removed the actual address and phone number


                                        ####

                                        <CENTER><table width=400>
                                        <tr>
                                        <td>
                                        <BR><CENTER>
                                        Footer Content Here<br />
                                        Address | Phone #
                                        </CENTER>

                                        <p><CENTER><FONT SIZE=-2>Copyright 1995-2008 </FONT>
                                        </CENTER>
                                        <td><tr></table>
                                        </CENTER>


                                        ####

                                        It is not parsing or referencing another include just plain html...I'll start looking into the server aspect...

                                        Thanks for everyone's help...