From: "David Smith" <[EMAIL PROTECTED]>
> 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...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to