Your browser does not seem to support CSS. If images appear below, please disregard them.
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
Previous Thread
Next Thread
Print Thread
Rate This Thread
#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

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.

#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();

#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
Likes: 1
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.

#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.

Sponsored Links

Member Spotlight
Crime
Crime
SC, usa
Posts: 506
Joined: March 2002
Show All Member Profiles 
Forum Statistics
Forums45
Topics47,470
Posts82,640
Average Daily Posts7
Members2,159
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 40,634
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Ghost Likes: 1
Gremelin Likes: 4
Ice Likes: 1
unreal Likes: 1
Top Liked Users (30 Days)
No Data Found
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Snapshot build 20160902)