Re: Question for you guys and gals

From: Date: Fri, 22 Aug 2003 14:10:58 +0000
Subject: Re: Question for you guys and gals
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160423@lists.php.net to get a copy of this message
From: "David Smith" <dsmith@sebc.edu> > I have a problem. I have all my functions (currently) set aside in one > file, and I just require_once that page for all of the other pages that > may need any of those functions. In those functions I have it setup to > echo the link to the CSS page for my site (just a very lazy way of doing > it). My problem is on the sites that I use cookies or use the header to > redirect a page. How can I still have my CSS on my functions page and > not have problems with header errors because of this already being at > the top...recommendations? You already know the answer, stop doing it the lazy way. Have a function that creates your "header" with the CSS links and call that function only after you've determined you don't need to set a cookie or another header(). Or cheat and use output buffering. ---John Holmes...

« previous php.general (#160423) next »