RE: [PHP] Best way to put layout, code on pages?

From: Date: Fri, 11 Oct 2002 14:46:25 +0000
Subject: RE: [PHP] Best way to put layout, code on pages?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119644@lists.php.net to get a copy of this message
> <?php > include("include.php"); //This contains the database connection code > and whatever other global code, as well as the layout functions. > doheader(); //This function contains the top of the layout. > //Do whatever the page does > dofooter(); //This function contains the bottom of the layout > ?> > > There are still problems with this, though. No way to use global code > at the bottom of the page, for one thing. I've also considered > something like: What do you mean you can't "use global code at the bottom of the page"?? Maybe output buffering could solve your problem. ---John Holmes...

« previous php.general (#119644) next »