Link to home
Start Free TrialLog in
Avatar of kuhajeya
kuhajeya

asked on

php includes

Dear all,

when i write this these pages i use include files for to increase flexibility. i  would like to if this increase load of the page, since this inc page would include lot of utilities, constants and so on....
rather than giving every thing in a single file is wise to break up those in to secitons and include as separate files.

Kuhajeyan
Avatar of _Marcel_
_Marcel_
Flag of Netherlands image

Indeed, when including files, they always need to be read (increasing file I/O) and parsed (increasing CPU/memory). So it would be better to only include files whenever you need them.

On the other hand, files that are used very often are very efficiently handled by your OS. And when you use something like ZEND optimizer, the parsed files are stored. The impact would then be quite little.

Also, when you are not encountering any problems with your request-load (i.e. the impact on the server with a single call to a page) then you don't need to bother with optimizing this (unless you expect it to be a problem in the future of course).
ASKER CERTIFIED SOLUTION
Avatar of Promethyl
Promethyl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial