I'll start by saying everything works fine; as long as I put the @ in front of session_start(), it works fine.. it still works fine even if I don't, it just shows this unsightly error:
Warning: Cannot send session cache limiter - headers already sent (output started at /etc/etc/mdheader.php:1) in /etc/etc/mdheader.php on line 1
I have no clue why this is happening, but I can tell you the situation. I have many files within a website that use the same header and footer (mdheader.php and mdfooter.php), so instead of putting the session_start() in every file, I thought it would be ok just to throw in into the header file. The first line of every file that uses the mdheader.php is <? include('mdheader.php'); ?> Which then reads the first line of the header file which is <? session_start() ?>
Mind you, it does work, but not without error if I don't use @. Is it because I'm including the file first before calling session_start, even though the first thing the included file does is call it?
Thanks for any help
Fitz