bpops Posted August 15, 2006 Share Posted August 15, 2006 Quick question:Can you nest include statements? for example, can i have:[code=php:0]include("top.php");[/code]in one php file then, inside of top.php,[code=php:0]include("banner.php");[/code]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! Quote Link to comment https://forums.phpfreaks.com/topic/17655-nesting-include-statements-solved/ Share on other sites More sharing options...
Daniel0 Posted August 15, 2006 Share Posted August 15, 2006 Included files can include files, and there is no limit on how many times it can be done. Quote Link to comment https://forums.phpfreaks.com/topic/17655-nesting-include-statements-solved/#findComment-75255 Share on other sites More sharing options...
bpops Posted August 15, 2006 Author Share Posted August 15, 2006 Awesome, thanks for the response! Quote Link to comment https://forums.phpfreaks.com/topic/17655-nesting-include-statements-solved/#findComment-75257 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.