Hi,
In our inventory application, we have a reporting section. Each class is made available via an include() statement at the beginning of the report page. While the class is not instantiated until it's needed, does using multiple include() statements take up additional memory?
It's to the point where we have 10 reports, so that's 10 report classes, a Utilities class and a DB class all getting included when the reports page is hit.
Each report is landed upon by the user choosing a form option, then parsed using ifelse to instantiate the requested report class. Instead of using the multiple includes at the beginning, would a better option be to include() the class in the ifelse?
This pertains to PHP4, if that's relevant.
-a9