the file is not even read! The include() method is not only more efficient but also easier to maintain as you suggest.
The efficiency point is at least debatable -- opening and reading the file is actually quite an expensive operation, the cost of which may outweigh the
A good point not to be taken lightly. However, if you cache script opcodes (e.g. eAccelerator) then the efficiency of only including code that is absolutely needed will increase.
-- Teach a person to fish...
Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://php.net/manual/ php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php