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; ?>
[ad code=1 align=center]
Perfect!