burtybob Posted September 20, 2007 Share Posted September 20, 2007 This may sound dumb but is it possible to have 1 file which includes all the files that you might need to include in any document? EG include('masterfile'); In master file, include ('file1'); include ('file2'); include ('file3'); Etc etc? Link to comment https://forums.phpfreaks.com/topic/70028-solved-a-master-include/ Share on other sites More sharing options...
Orio Posted September 20, 2007 Share Posted September 20, 2007 If the question is- "Can an included file include files" the answer is yes. Meaning your example would work. If thats not what you mean then try to explain again please. Orio. Link to comment https://forums.phpfreaks.com/topic/70028-solved-a-master-include/#findComment-351684 Share on other sites More sharing options...
MmmVomit Posted September 20, 2007 Share Posted September 20, 2007 I'd also say this is fairly good design. This way if you decide to break up one include file into multiple files, you only have to alter the master include file, instead of altering every page in your site. Link to comment https://forums.phpfreaks.com/topic/70028-solved-a-master-include/#findComment-351697 Share on other sites More sharing options...
burtybob Posted September 20, 2007 Author Share Posted September 20, 2007 If the question is- "Can an included file include files" the answer is yes. Meaning your example would work. If thats not what you mean then try to explain again please. Orio. Yes this is what i meant so that i can include all my current incliudes into one so as to make for smaller code but easyness as well. So that i just have one include in each file file instead of loads. Thank you for your help. Link to comment https://forums.phpfreaks.com/topic/70028-solved-a-master-include/#findComment-351781 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.