RE: [PHP-DB] daisy chaining includes

From: Date: Tue, 23 Jan 2001 12:49:36 +0000
Subject: RE: [PHP-DB] daisy chaining includes
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-6088@lists.php.net to get a copy of this message
I have a single include file that I put all my require_once commands in that are applicable to each page. Something like <?PHP require_once("foo.php"); require_once("bar.php"); require_once("sna.php"); require_once("fu.php"); ?> then at the top of each page I put: require_once("myincludes.php"); is that what you are looking for? Cal http://www.calevans.com -----Original Message----- From: John Starkey [mailto:jstarkey@advancecreations.com] Sent: Tuesday, January 23, 2001 3:03 AM To: php-db@lists.php.net Subject: [PHP-DB] daisy chaining includes I'm trying to clean up about 2000 lines of whacked out newbie code i've created. Is there a way to daisy chain includes? I have about five includes in each header and I was thinking of making one include file and linking to that. And furthermore :} is there a way to include within a function if i do make several include files? So the file is only called when the function is? Would this be a good way to cut down on server processes? Or would it offset by the disk-to-parsed time? I had a db_queries include but i've dropped that so that I can use one variable and unset it each time. This is a way to save memory right? Dumb question I think. Thanks, John -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#6088) next »