UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
Sponsored Links
Latest Postings
Latest Reviews
Topic Options
Rate This Topic
#19219 - 08/04/03 04:36 AM Odd php problem I keep getting
Rapture Offline
Member

Registered: 04/23/02
Posts: 212
Loc: 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 04:40 AM Re: Odd php problem I keep getting
Rapture Offline
Member

Registered: 04/23/02
Posts: 212
Loc: Redwood
oh yeah, i've tried to comment out line 31 but that didn't change anything.

Top
#19221 - 08/04/03 05:10 AM Re: Odd php problem I keep getting
Rapture Offline
Member

Registered: 04/23/02
Posts: 212
Loc: 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 09:51 AM Re: Odd php problem I keep getting
Cold Sunn Offline
UGN GFX Whore

Registered: 03/03/02
Posts: 574
Loc: 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 03:27 AM Re: Odd php problem I keep getting
Brett Offline
Aptenodytes Forsteri

Registered: 08/25/03
Posts: 9
Loc: Salina, KS
Your trying to setcookies after print/echo text. This just isn't allowed.

Top

Moderator:  §intå×, Gremelin 
Featured Member
Registered: 03/02/02
Posts: 136
Forum Stats
2148 Members
46 Forums
35153 Topics
70323 Posts

Max Online: 1567 @ 04/25/10 05:20 AM
Top Posters
UGN Security 28315
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Tim050, Gecko666, defghi795767, Devo60, ali
2148 Registered Users
Who's Online
0 registered (), 477 Guests and 343 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!