Jump to content


Photo

Database Problem


  • Please log in to reply
2 replies to this topic

#1 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 03 March 2006 - 01:31 PM

Hey, I just switched my website from a free host to a paid host, and I'm not exactly sure what this means, since I didn't have a problem with the free host doing it.

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/sierobin/public_html/index.php:2) in /home/sierobin/public_html/index.php on line 3

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/sierobin/public_html/index.php:2) in /home/sierobin/public_html/index.php on line 3[/quote]

What exactly does this mean?

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 03 March 2006 - 01:33 PM

You have already output some html before you have called the session_start() function.

place it at the very top of your script and all shoudl be well.
follow me on twitter @PHPsycho

#3 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 03 March 2006 - 01:43 PM

Well there is HTML and PHP on the page.. does this mean that I need to put the HTML into the the php beginning and ending tabs?

session_start(); is at the top of the page lol, which is kind of weird I guess, but it doesn't work.

Agh, I got it thank you.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users