I know this has been asked a million times already but I can't seem to find an answer that helps with mine.
I just started a new php website and as you saw in the title it keeps saying:
Warning: Cannot modify header information - headers already sent by (output started at /customers/e/7/8/andersws.dk/httpd.www/template/index.php:2) in /customers/e/7/8/andersws.dk/httpd.www/template/index.php on line 4
All that is in the file so far is:
<!DOCTYPE html>
<?
if(file_exists('first.run')){
header('location: index.php');
}
?>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
// put your code here
?>
</body>
</html>
So I really can't see what I'm doing wrong.