RE: [PHP] Error on session_start()

From: Date: Mon, 22 Oct 2001 12:35:09 +0000
Subject: RE: [PHP] Error on session_start()
Groups: php.general 
Request: Send a blank email to php-general+get-71824@lists.php.net to get a copy of this message
You've probably got an echo $something_or_other line before calling the header() function. If not, have you included or required a file? If there's a blank line (or more than one blank line) at the bottom of your included or required file that is considered output to the browser. Header() MUST be the vert first thing sent to the browser. Hope this puts you on the right track Dave -----Original Message----- From: Zavier Sheran [mailto:aaaweb@zavier.net] Sent: 19 October 2001 23:13 To: php-general@lists.php.net Subject: [PHP] Error on session_start() When I try to start a session or authenticate with HTTP headers, I get the following error: Warning: Cannot send session cache limiter - headers already sent (output started at /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php:1) in /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php on line 1 It always says the headers were already sent. What could be the cause? It happens on my dev server (Win32, PHP 4.06) and on my ISP's virtual server (FreeBSD, PHP 4.04) -Zavier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#71824) next »