At 23:23 12.11.2002, Ben C. said: --------------------[snip]-------------------- >I am receiving the following error on my change password form: > >Warning: Cannot send session cache limiter - headers already sent (output >started at /home/httpd/vhosts/localhost/httpdocs/order/change_psswd.php:14) >in /home/httpd/vhosts/localhost/httpdocs/order/change_psswd2.php on line 4 > >Does anyone have a clue as to why? --------------------[snip]--------------------
You are opening your session with a specific cache-limiter. This requires the server to transmit two MIME headers to the client. header('Cache: none'); header('Pragma: No Cache'); Headers can only be sent _before_ any data gets flushed to the client. In your source file (change_passwd.php on line 14) some MIME message body data (web page content) has already been generated and transmitted to the client, therefore no headers can be sent anymore. Remedy: 1) don't send data before you're done with the headers, or 2) Use output buffering (ob_start(), ob_end_flush()) to avoid data being transmitted prematurely. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php