I can't get this header to work. I keep getting the error that a session has been started. So I went and made a completely blank page which I thought would insure that I don't have any output before the header.
<body>
<?php
header("Location : index.php");
exit();
?>
</body>
that is the exact code yet I still get the error
Warning: Cannot add header information - headers already sent by (output started at /Library/WebServer/WebSites/fulleffectfilms/testing.php:3) in /Library/WebServer/WebSites/fulleffectfilms/testing.php on line 3
can someone explain this to me?