note 112938 added to outcontrol.configuration

From: Date: Fri, 09 Aug 2013 04:46:32 +0000
Subject: note 112938 added to outcontrol.configuration
Groups: php.notes 
Request: Send a blank email to php-notes+get-195919@lists.php.net to get a copy of this message
Using "OFF" or no value on output_buffering will disable header modifications, like redirects or content-type or content-disposition resulting in the error we commonly attribute to output before header modifications: Warning: Cannot modify header information - headers already sent by (output started at C:\PATH\filename.php:1) C:\PATH\filename.php on line 1 Example code with output_buffering = OFF which results in this behavior. Changing it to "ON" or giving it a value will likely cause normal behavior. <?php header("Location: http://www.php.net"); ?> or <?php header("Content-Type: text/Calendar"); ?> <?php header("Content-Disposition: inline; filename=appointment.ics"); ?> ---- Server IP: 69.147.83.199 Probable Submitter: 212.181.101.52 ---- Manual Page -- http://php.net/manual/en/outcontrol.configuration.php Edit -- https://master.php.net/note/edit/112938 Del: integrated -- https://master.php.net/note/delete/112938/integrated Del: useless -- https://master.php.net/note/delete/112938/useless Del: bad code -- https://master.php.net/note/delete/112938/bad+code Del: spam -- https://master.php.net/note/delete/112938/spam Del: non-english -- https://master.php.net/note/delete/112938/non-english Del: in docs -- https://master.php.net/note/delete/112938/in+docs Del: other reasons-- https://master.php.net/note/delete/112938 Reject -- https://master.php.net/note/reject/112938 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195919) next »