require_once on a MasterFile full with links-or not to?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
TheBigYin
Forum Newbie
Posts: 1
Joined: Tue Oct 03, 2006 2:49 pm

require_once on a MasterFile full with links-or not to?

Post by TheBigYin »

I have lots of Functions split over lots of different files.

Would it be advantagous to have one Masterfile.php that uses; required('xxx') to link to all my smaller files containing lots of funtions and just using;

required_once('MasterFile.php') in all my web pages??

All of the Function files combined well over 1M and I'm unsure if this will mean every time theres a page change (ie Index.php > Information.php) if the server will process MasterFile again and again and generate more load.

Thx
Post Reply