Jump to content

Recommended Posts

I really can't address the speed, but it is common to break things into useable parts to it's easier understand.  Even html parts are often saved as separate sections, eg. require("header.php"); etc.  It's even a good idea in mho to only require "parts" that are needed for a particular page, so doing a simple task doesn't need to scan through a huge processing page to find the matching processing script.

Link to comment
https://forums.phpfreaks.com/topic/260938-multiple-requires/#findComment-1337363
Share on other sites

As long as you are not including multiple 100's of files on each page request, you won't have any problem.

 

At least one of the open source (cart) scripts was blindly reading through and including everything in multiple folders, loading 200+ files on each page request (instead of only loading what the page needed) and on the first request after a period of inactivity, since the files weren't in the disk cache, took a noticeable amount of time compared to follow-on requests that were able to read everything from the disk cache.

Link to comment
https://forums.phpfreaks.com/topic/260938-multiple-requires/#findComment-1337511
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.