DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Cannot Modify Header Information - Headers Already Sent By FIX
Buffers output and eliminates problem with spaces/line breaks at the beginning/end of files. Make sure to place ob_start(); before header(); is called.
<?php ob_start(); header("Location: somepage.php"); //Redirect ob_end_flush(); exit; ?>