Why do i get this PHP error?

Shane

New member
When I put a php redirection script on my page, it gave me an error, why?

Script:
<?php
header( 'Location: http://www.google.com' ) ;
?>


Error:
Warning: Cannot modify header information - headers already sent by (output started at /home/shanetal/public_html/st2/admin/include/index.php:2) in /home/shanetal/public_html/st2/admin/include/index.php on line 3
 
Back
Top