Require constant-defining files at once or by utilisation in PHP? -
I have approximately 20 files containing 10-15 times:
define ( 'SomeConstantName', 'stringBetween10and200Chars');
This app is all important, but every constant file is parallel to an app page.
For example, index.php will require index_constants.php for it.
The question is whether I would like to make a file of all static-definitions together, related.
I am asking about speed and efficiency.
Thank you.
If you search for performance (after a file with useless data) If the page needs only one, then it will be included in it) then enter a file for each page, but if you are looking for low / simplicity (If you think that this will not create any kind of complexity for you) Thanks ...
Comments
Post a Comment