I am pretty new to PHP and need some help. I hope someone has the anwser for me. Its driving me nuts.
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/home/brietjens3/domains/finnianlegal.nl/public_html/login2.php:5) in /usr/home/brietjens3/domains/finnianlegal.nl/public_html/login2.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/brietjens3/domains/finnianlegal.nl/public_html/login2.php:5) in /usr/home/brietjens3/domains/finnianlegal.nl/public_html/login2.php on line 8
I did some research and found that often the problem is that there is something that is sent to the browser before the session starts. So I deleted all extra space, lines, echos, prints, but it was still giving me this problem. To identify the problem I have completely stripped my scripped to just the HTML basic tags and the sessiop, and it is still giving the same error.
Code: Select all
<html>
<head>
</head>
<body>
<?php
session_start();
$_SESSION['name'] = "bob";
header("Location: admin.php");
?>
</body>
</html>Someone please help! Thanks in advance. (english is not my first language, so my apologies for any mistakes unclearities)
Greetings from Amsterdam,
Bob