Server Side Includes

B

Buddy Ackerman

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
 
S

Sylvain Lafontaine

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.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top