Solution to "headers already sent" error.

From: Date: Mon, 18 Jun 2001 22:28:32 +0000
Subject: Solution to "headers already sent" error.
Groups: php.general 
Request: Send a blank email to php-general+get-54284@lists.php.net to get a copy of this message
So, during the time the lists were down, i was banging my head over a seemingly impossible error message. This was the error message: Warning: Cannot send session cache limiter - headers already sent What?! I exlaimed.. the first line in my page registered the session variable i was using, so what was the deal. I turned out to be one measly little space in front of my <?php tag. If you are registering a session variable, it seems you cant have ANY whitespace in the page before you register the session variable. Figured i would share that nugget, cus man did it ever drive me nuts, and i saw no reference to it at all in the manuals. Quinn Merio Vice President Vir2lAlliance Inc. www.vr2a.com

« previous php.general (#54284) next »