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
thcc2
Forum Commoner
Posts: 33
Joined: Thu Jan 05, 2006 9:37 pm
Location: Singapore

Error

Post by thcc2 »

My php page gives me the following error
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /apa/htdoc/sch/seach.php:7) in /apa/htdoc/sch/lib.php on line 3
can someone please tell me why?

thks in advance
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

You could start searching the web (or this forum) for other posts about this error...

It has been handled so many times that i seriously doubt that you've done this already... There is a sticky thread in this forum with guidelines for posting.. Might want to read this first.
thcc2
Forum Commoner
Posts: 33
Joined: Thu Jan 05, 2006 9:37 pm
Location: Singapore

Post by thcc2 »

timvw wrote:You could start searching the web (or this forum) for other posts about this error...

It has been handled so many times that i seriously doubt that you've done this already... There is a sticky thread in this forum with guidelines for posting.. Might want to read this first.
Thks for ur reply, i did do a search before i post this , but i still can't get the idea
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hint: search for "headers already sent"
thcc2
Forum Commoner
Posts: 33
Joined: Thu Jan 05, 2006 9:37 pm
Location: Singapore

Post by thcc2 »

feyd wrote:hint: search for "headers already sent"
I still can't get what i want.
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Post by mickd »

i just went to search, typed in headers already sent, changed forum to php - code and got this...

viewtopic.php?t=42518&highlight=headers+already+sent

EDIT: just to let you know, session_start has to be started before any output normally at the very top of the script.

session_start
thcc2
Forum Commoner
Posts: 33
Joined: Thu Jan 05, 2006 9:37 pm
Location: Singapore

Post by thcc2 »

mickd wrote:i just went to search, typed in headers already sent, changed forum to php - code and got this...

viewtopic.php?t=42518&highlight=headers+already+sent

EDIT: just to let you know, session_start has to be started before any output normally at the very top of the script.

session_start
this is the info that i'm looking for
session_start has to be started before any output normally at the very top of the script.
Thks

mickd pls help on my question at viewtopic.php?p=228599#228599
Post Reply