Warning: Cannot modify header information – headers already sent by ..

error message:

Warning: Cannot modify header information – headers already sent by (output started at C:\…\…\…\…\filexpto.php:1) in C:\…\…\…\…\….php on line xx

 

resolution:

open file filexpto.php and add ob_start(); like

 
<?php
ob_start();
....

 

ob_startTurn on output buffering

This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer.

 
more in:
http://www.php.net/manual/en/function.ob-start.php
 

Deixe um comentário

O seu endereço de email não será publicado. Campos obrigatórios marcados com *