Headers already sent error?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Headers already sent error?

Post by mjseaden »

Dear All,

I'm using multiple scripts for my current site, and every time now I call session_start() [you have to do it at least once!], I now get the error

Code: Select all

Warning: Cannot send session cache limiter - headers already sent (output started at /home/XXX/public_html/index:3) in /home/XXX/public_html/includes/globals.php on line 14
What can I do to resolve this?

Many thanks

Mark
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Search google or this forum for 'headers already sent'.
It pops up about 100 times every day :o
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Post by mjseaden »

Hi Mark,

I've had a search of the website and I can't seem to find anything directly related to this. Is the solution a complicated one? It doesn't seem to be the sort of thing that might be?

Many thanks

Mark
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

Post Reply