Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include Limit

Status
Not open for further replies.

minoad

Programmer
Mar 28, 2001
138
US
Is anyone aware of a limit on how many levels of includes you may have. In other words if default.asp includes include1.asp, and include1.asp includes include2.asp ......

Is anyone aware of this having a limit?

Thanks

Micah A. Norman
 
It may not have a limit, but you need to understand how the server processes the includes. Includes are read first. Before anything else happens. This means that if a include takes action, it will happen before the rest of the page is parsed. So essentially what is happening is when Default.asp is loaded, include1 is loaded first, but in the process it finds that it has to load include2.....the more you step through this, the worse it will get.

If you have to multi tier things like that, it's better to do them as functions in 1 include, and call them separately. The money's gone, the brain is shot.....but the liquor we still got.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top