Tag Archive | header

Causes for php Warning: Cannot modify header information – headers already sent

First : Echo before header <?php echo “hello world” … header(‘Location: http://…&#8217;); ?> Solution: Remove the echo before header Use ob_start(); and ob_end_flush(); for buffered output