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! 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. 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! Link to comment https://forums.phpfreaks.com/topic/17655-nesting-include-statements-solved/#findComment-75257 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.