Server Side Includes

Discussion in 'ASP General' started by Buddy Ackerman, Dec 26, 2004.

  1. I am troubleshooting a web site (not written by me) and may of the pages use server side includes. This one page
    includes a page that return includes the page the included it.

    Page 1 (_connection.asp):
    <!--#include file="MGroups/MRdisplayfun.asp"-->

    Page 2 (MRdisplayfun.asp):
    <!--include file="../_connection.asp"-->

    The site is quite slow and when I first found this I thought that this was the primary cause of it. Then I thought this
    page shouldn't work at all because it would create an infinite loop and should just recursively call the pages and
    eventually consumme all server resources and database connections. However it doesn't appear to act that way and the
    page does display and there is no endless calls to the SQL statements in the two pages. Is there something that
    prevents recursive calling when using SSIs?

    Buddy Ackerman, Dec 26, 2004
    1. Advertisements

  2. You don't have the right to make recursive include.

    In your case, the second statement is not an include because it's missing
    the # before the include statement.

    S. L.
    Sylvain Lafontaine, Dec 27, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.