Unstoppable Domains โ€” Expired Auctions

What I'm doing wrong? This piece of code annoying me...

Spaceship Spaceship
Watch
Impact
145
Hey guys,

I receive this annoying error while I try to use sessions

Warning: session_start(): Cannot send session cookie - headers already sent by blabla...

I'm putting session_start(); at the very very top of the page before any output or headers..anything I'm missing?

--please help :yell:

Thank you,
Ahmed
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Take a closer look to this blabla :))

Ok, serious - it seems strange but maybe you have even one extra space at the top... or (which is less understandable :) you have some extra empty lines at the end of the file... check things out and maybe this is the problem. If not, check included files for possible problems. Or simply let us see some code and we will know it better :alien:
 
0
•••
Oh well, I even tried <? session_start(); ?> it gives the same error !
 
0
•••
designporte PM me with your source of the file,
i will try to solve it for you,

Karim
 
0
•••
The host just crashed in flashfxp and i lost around 5kb of code in the configuration file, damn... it ruined my script.. Hosts that really suck :(

Guess..I'm going to rewrite all of this again..
 
0
•••
Well, if you need a host, let me know :)

Located in Europe but simply and crashes at all, PHP5 :))
Probably if you rewrite the code problem will disapear.

Good luck!
 
Last edited:
0
•••
Thanks mixon, I'm really having a good stress now, I'll rewrite the whole functions file. :(
 
0
•••
ive had this problem.. i did some searchin around google

contact your host, and and ask him to turn on output buffering.


if he doesnt you will need to manually use the output buffering functions
ex, ob_start() ob_flush(). Look here for infomation on how to use these functions

output buffering basically sends all the header inforamtion once the whole code is processed

What causes this
your headers are being sent before that protion of the code is processed.
 
Last edited:
0
•••
templaterave said:
use the output buffering functions
ex, ob_start() ob_flush().

That's the great idea! Buffering has got many other potential nice features, but use carefully.

Forgot to add, that with buffering is like with time vehicle :) When you already made a full page and suddenly decide that something is wrong or you want to go somewhere else, simply do it... just like going back in time - sending the headers "once again" :) I am not sure if it's clear what I said, but I had to :)
 
Last edited:
0
•••
Oh, thanks guys.. I always wondered why it keeps acting like headers are sent before ..though I haven't..i'll recreate it and take care of these functions you mentiond, thanks
 
0
•••
no problem... thats what im here for
 
0
•••
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back