Jump to content


Photo

php session error


  • Please log in to reply
3 replies to this topic

#1 russia5

russia5
  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 06 April 2006 - 11:05 PM

Hello, I have a Link exchange script that I am uploading (cpdynalinks) It is not difficult, only one CHMD When I log into the admin, I get this error.

[code=auto:0]Warning:session_start(): Cannot send session cookie - headners already sent by (output started at /home/xxxx/public_html/mylinks/config.php:39) in /home/xxxx/public_html/mylinks/admin/index.php on line 69

Link 39 is the end of the config.php script

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 April 2006 - 10:15 AM

You are outputing something on line 39 in config.php and the error was triggered in index.php on line 69.

When using session_start make sure you dont have anything being outputted to the browser before the use of session_start otherwise you'll get the error message you're getting above.

#3 russia5

russia5
  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 07 April 2006 - 01:09 PM

Thanks for the answer. Line 39 is on the bottom of the script after the closing tag. What could I be outputting at that point?

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 April 2006 - 02:06 PM

Does you script go like:
37 // rest of code above
38 ?>
39
if so delete line 39. You are outputting whitespace characters such as newlines, carriage return etc.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users