Modularity--Optimizing Includes and Libs

From: Date: Wed, 19 Sep 2001 19:30:50 +0000
Subject: Modularity--Optimizing Includes and Libs
Groups: php.general 
Request: Send a blank email to php-general+get-67904@lists.php.net to get a copy of this message
Hi; I have a question regarding includes and writing library modules in PHP. In one of the replies to my previous e-mail,I was told that PHP parses/compiles pages everytime a new request comes in. So, does this mean we have to minimize the amount of code per page (which also means to minimize number of includes) to improve response time? I mean, usually in many programming languages, it is a common practice to gather shared functions in a library and include/import them from individual scripts. But, in case of PHP, given that this library will also be parsed/compiled per every request, is this a bad practice? What is the alternative to this? Replicate functions that are used in scripts in every page? Thanks, Baho __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/

« previous php.general (#67904) next »