Warning: Cannot modify header information - help

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
davidklonski
Forum Contributor
Posts: 128
Joined: Mon Mar 22, 2004 4:55 pm

Warning: Cannot modify header information - help

Post by davidklonski »

Hello

I am trying to send a cookie using setcookie, but when I do that, I get the following error:

Cannot modify header information - headers already sent.

Where do I need to place my cookie management code in order for the code to be correct?

thanks
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

You need it before any html is ouput also there is ablsolutely no space between the start of the file and <?
Post Reply