From: Karsten D. <k.d...@fi...> - 2002-03-21 11:51:38
|
On Mit, Mär 20, 2002 at 11:57:20 -0600, bo...@el... wrote: > I'd like to suggest that there be multiple files, and that > one definition inside that file would indicate that it > has already been loaded. > $lang_loaded["books"] = "yes"; //module is called "books" > This way, we only load what is needed. > > If not ($lang_loaded["books"]) { > include 'books_file' > } Ahem. Did you know about include_once() and it's sister require_once()? There are even functions to query for all included/required files. This should solve the problem better and faster... Regards, Karsten -- fishfarm netsolutions - Karsten Dambekalns Echternstraße 73 - 38100 Braunschweig Tel. +49 531 1232902 k.d...@fi... Fax. +49 531 1232906 http://www.fishfarm.de/ ----------------------------------------------------- |