adam84 Posted August 27, 2008 Share Posted August 27, 2008 I was just wondering if this would work. I have my php files, where I have all my html code and stuff. At the top of the page I have about five or six different include files. What I was wondering is if I make a master file, that I put all my includes in and on my html page, I just included the master file (instead of all of the other includes), would that work correctly? Quote Link to comment https://forums.phpfreaks.com/topic/121564-solved-include/ Share on other sites More sharing options...
obsidian Posted August 27, 2008 Share Posted August 27, 2008 Yes. this is one of the nice things about having a config file for large applications. Simply setting some variables and including a config file will let you take care of all the initial includes and instantiation of any classes and such needed on the page all from one file instead of having to duplicate code at the top of every page. Quote Link to comment https://forums.phpfreaks.com/topic/121564-solved-include/#findComment-626962 Share on other sites More sharing options...
adam84 Posted August 27, 2008 Author Share Posted August 27, 2008 Awesome, that is the second greatest news I have heard all day! Quote Link to comment https://forums.phpfreaks.com/topic/121564-solved-include/#findComment-626968 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.