Redirecting Web Page using PHP

<?
header('Location: http://www.newpage.com/');
?>

This should be placed before the header starts as below.

<?
header('Location: http://www.newpage.com/');
?>
.. open body tag etc...