Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-20-2004, 11:02 AM   #1 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
Warning: Cannot modify header information.

ok, here's the thing:
i'm creating some kind of 'external phpbb mod', it's a menu, on my homepage that changes depending if you're online or not.
everything is working now, except that i'm getting this error, on top of the menu:

Quote:
Warning: Cannot modify header information - headers already sent by (output started at http://www.url.com/index.php:140) in http://www.url.com/forums/includes/sessions.php on line 188

Warning: Cannot modify header information - headers already sent by (output started at http://www.url.com/index.php:140) in http://www.url.com/forums/includes/sessions.php on line 189
Note: i didn't edit any PHPBB Files, (sessions.php).

Here Are Lines 188 & 199 (sessions.php) :

[code:1:ee2159d088]
setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
[/code:1:ee2159d088]

Thanks in Advance .
//samer
samer is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 07-20-2004, 11:04 AM   #2 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Open http://www.url.com/forums/includes/sessions.php and make sure there are no blank lines at the end after ?>

Sometimes that is the problem.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-20-2004, 03:29 PM   #3 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
Nope .. No Blank Lines.
samer is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-20-2004, 03:52 PM   #4 (permalink)
Inactive
 
Join Date: 07-10-04
Posts: 34
iTrader: 0 / 0%
Latest Blog:
None

ServerSelect.net is liked by many
Make sure there is no information whatsoever being sent out to the page before the cookie is set.
ServerSelect.net is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-22-2004, 06:05 AM   #5 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
well, i'm kinda obliged to send info before sessions.php is open.
samer is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-22-2004, 09:26 AM   #6 (permalink)
Inactive
 
Join Date: 02-23-04
Location: South UK
Posts: 60
iTrader: 0 / 0%
Latest Blog:
None

ILoveJackDaniels is liked by many
Well, that's what it's complaining about. You are trying to send header information after sending the headers, which you can't do. It might be trying to redirect the user, or send a cookie. Whichever it's doing, you'll get the error until you change it to send things in the right order.
ILoveJackDaniels is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-23-2004, 05:24 AM   #7 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
, i didn't find a solution, but i have noticed something:
when i visit my forums before visiting my homepage, i don't get the error, because (i think) the cookie has been set.

so i have to found a way for the cookie to be set before accessing my homepage.. Help please.
samer is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-23-2004, 09:54 AM   #8 (permalink)
SVB
Inactive
 
SVB's Avatar
 
Join Date: 10-13-03
Posts: 7,481
iTrader: 0 / 0%
Latest Blog:
None

SVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest orderSVB is a web professional of the highest order
Send a message via Yahoo to SVB
I tried some php coding today. You cant do much if you have any HTML or PHP before the phpBB code - it complained to me about headers already sent. Had to stick the code at the very top of the page for it to work.
SVB is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-23-2004, 11:28 AM   #9 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
unreal, PM'ed ya.
samer is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-23-2004, 12:14 PM   #10 (permalink)
Inactive
 
younghistorians's Avatar
 
Join Date: 10-13-03
Location: USA
Posts: 1,340
iTrader: 0 / 0%
Latest Blog:
None

younghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really nice
Dumb question but are you sure you've CHMODDED it correctly?
younghistorians is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-23-2004, 02:43 PM   #11 (permalink)
Inactive
 
samer's Avatar
 
Join Date: 10-13-03
Location: Lebanon
Posts: 4,099
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
i'm testing it on my home server (http://localhost/) i didn't FTP it.
samer is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need advice on how to modify a logo fairyjo Graphic Design Forum 27 05-08-2008 10:39 PM
BlueFind - Request to Modify Listing ssgupta V7N Directory Issues 3 03-31-2007 11:38 PM
How can I modify a java applet? Jason Web Design Lobby 3 09-18-2004 12:14 AM
Modify existing URL in Bluefind Directory maryan V7N Directory Issues 3 08-22-2004 05:49 AM
Modify an exisitng listing ecotour-directory V7N Directory Issues 2 08-20-2004 01:27 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:33 PM.
© Copyright 2008 V7 Inc