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:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 3:03 AM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to