Hi,
I am trying to use the following function:
header("Locatio n: http://www.mysite.co.u k/home/update/index.php");
....but getting the following error:
Warning: Cannot modify header information - headers already sent by
(output started at
/data/httpd/VirtualHosts/www/htdocs/home/update/index.php:12) in
/data/httpd/VirtualHosts/www/htdocs/home/update/index.php on line 124
Is there any reason why I am getting this error? One concern of mine
was that the header function was not at the top of the page (line 1),
does this matter? I need this command to run a series of statements and
depending on specific conditions, redirect the user to another page.
Cheers
Burnsy
I am trying to use the following function:
header("Locatio n: http://www.mysite.co.u k/home/update/index.php");
....but getting the following error:
Warning: Cannot modify header information - headers already sent by
(output started at
/data/httpd/VirtualHosts/www/htdocs/home/update/index.php:12) in
/data/httpd/VirtualHosts/www/htdocs/home/update/index.php on line 124
Is there any reason why I am getting this error? One concern of mine
was that the header function was not at the top of the page (line 1),
does this matter? I need this command to run a series of statements and
depending on specific conditions, redirect the user to another page.
Cheers
Burnsy
Comment