Nasty PHP error

OK, hopefully this helps some one with something some time. If not, my server enjoyed the exercise of this post. I was playing around making a php app, and got a heinous error:

Warning: session_start() [function.session-start]:
Cannot send session cache limiter - headers already sent...

The best part, the line of the error was the last line of my script connecting to the db, the line with ‘?>’. WTF, right? It turns out, I had an empty space after my php closing tag. Deleting that fixed the problem. YIKES!

No Comments on "Nasty PHP error" – Do share

Leave a comment