Jump to content

[SOLVED] Include


adam84

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.