Jump to content


Photo

Nesting "include" statements? *SOLVED*


  • Please log in to reply
2 replies to this topic

#1 bpops

bpops
  • Members
  • PipPipPip
  • Advanced Member
  • 232 posts

Posted 15 August 2006 - 06:09 PM

Quick question:
Can you nest include statements? for example, can i have:

include("top.php");
in one php file then, inside of top.php,
include("banner.php");

I know the easiest way to answer this is to just try it, but I'm at work and was just thinking about this.
Also, if possible, anyone know the recursion limit?
Thanks!

#2 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 15 August 2006 - 06:10 PM

Included files can include files, and there is no limit on how many times it can be done.

#3 bpops

bpops
  • Members
  • PipPipPip
  • Advanced Member
  • 232 posts

Posted 15 August 2006 - 06:12 PM

Awesome, thanks for the response!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users