*Warning*: Cannot modify header information – headers already sent

Posted at October 1, 2015 at 12:00 am by Michael Lavrik

If you get an error in your PHP code similar to the below:

 

*Warning*: Cannot modify header information – headers already sent by
(output started at /home/thefatr/public_html/pgheader.php:12) in
*/home/thefatr/public_html/family_package_locator.php*on line *22*

 

 

To fix the error enable output_buffering in PHP.ini, or use INI_SET to enable output buffer.

 

Example in PHP.ini: output_buffering = On

 

Example INI Set: ini_set(‘output_buffering’, 1);

0.00 avg. rating (0% score) - 0 votes

You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply