Your browser does not seem to support CSS. If images appear below, please disregard them.
Topic Options
Rate This Topic
#19219 - 08/04/03 08:36 AM Odd php problem I keep getting
Joined: Apr 2002
Posts: 212
Rapture Offline
Member
Rapture Offline
Member

Joined: Apr 2002
Posts: 212
Redwood
I keep getting this...

Warning: Cannot modify header information - headers already sent by (output started at /web/htdocs/www.deliriumgaming.com/html/header.php:31) in /web/htdocs/www.deliriumgaming.com/html/includes/sessions.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at /web/htdocs/www.deliriumgaming.com/html/header.php:31) in /web/htdocs/www.deliriumgaming.com/html/includes/sessions.php on line 252

Line 31 on the header looks like this:
Code:
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
like 251 on sessions.php looks like this:
Code:
setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
any suggestions? I'm lost

Top
Sponsored Links
#19220 - 08/04/03 08:40 AM Re: Odd php problem I keep getting
Joined: Apr 2002
Posts: 212
Rapture Offline
Member
Rapture Offline
Member

Joined: Apr 2002
Posts: 212
Redwood
oh yeah, i've tried to comment out line 31 but that didn't change anything.

Top
#19221 - 08/04/03 09:10 AM Re: Odd php problem I keep getting
Joined: Apr 2002
Posts: 212
Rapture Offline
Member
Rapture Offline
Member

Joined: Apr 2002
Posts: 212
Redwood
LOL I always post up questions and then find the answer for them. I feel bad if it's wasting space n'stuff but all I did was put this at the beggining of session.php and it fixed it. I hope it doesn't have any side effect

Code:
ob_start();

Top
#19222 - 08/04/03 01:51 PM Re: Odd php problem I keep getting
Joined: Mar 2002
Posts: 574
Cold Sunn Offline
UGN GFX Whore
Cold Sunn Offline
UGN GFX Whore

Joined: Mar 2002
Posts: 574
us
Haha, I end up asking questions and finding the answer also. At least if someone with a similar problem sees your post, they will be helped.

Top
#19223 - 08/25/03 07:27 AM Re: Odd php problem I keep getting
Joined: Aug 2003
Posts: 9
Brett Offline
Aptenodytes Forsteri
Brett Offline
Aptenodytes Forsteri

Joined: Aug 2003
Posts: 9
Salina, KS
Your trying to setcookies after print/echo text. This just isn't allowed.

Top

Member Spotlight
Gremelin

Gremelin
Portland, OR; USA
Posts: 7,195
Joined: February 2002
Show All Member Profiles 
Sponsored Links
Forum Statistics
Forums46
Topics46,497
Posts81,667
Members2,157
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 39,661
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860