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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.