Please review the following code.
<html><head>
<?php
header("Location: http://www.mysite.com/index.php");
exit;
?>
</head>
<body>Hello World</body>
</html>
Simple, eh? But it does NOT work on my server. I telnet'd to the server:80 and here is the output:
HTTP/1.1 200 OK
Date: Tue, 04 Mar 2003 03:43:51 GMT
Server: Apache/1.3.27 (Unix) mod_log_bytes/0.3 mod_bwlimited/1.0 PHP/4.2.3 Fronh
X-Powered-By: PHP/4.2.3
Connection: close
Content-Type: text/html
<html><head>
<br />
<b>Warning</b>: Cannot add header information - headers alre>
It appears to me that the problem lies with the <br />. I can't see how I can correct that with my code. If I can, please advise. If the problem is with the Apache server config, let me know what to tell my hosting company.
I appreciate any assistance with this problem.
Thanks!
Jerry