[PHP] Header error

Master Summoner
Joined
May 11, 2008
Messages
513
Reaction score
99
PHP:
<? if($site['maint'] =="1")
header( 'Location: http://alpha-studios.info/maintenace/' ) ;
?>

Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/sedwards/public_html/alpha-studios/index.php:4) in /home/sedwards/public_html/alpha-studios/index.php on line 5
 
Re: Help Needed. PHP

PHP:
<? if($site['maint'] =="1")
header( 'Location: http://alpha-studios.info/maintenace/' ) ;
?>
Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/sedwards/public_html/alpha-studios/index.php:4) in /home/sedwards/public_html/alpha-studios/index.php on line 5

Post the script upto the header() line and we can help alot easier
 
umm why not just:
PHP:
<? if($site['maint'] =="1")
echo "<meta http-equiv='refresh' content='0;url=http://alpha-studios.info/maintenace/'/>";
?>
your trying to redirect right?
 
Back