[PHP] Foolish error, but its stumped me.
Back yet again, here is my error:
PHP Code:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at W:\www\layout\header.php:1) in W:\www\layout\header.php on line 1
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at W:\www\layout\header.php:1) in W:\www\layout\header.php on line 1
Any who, here is the header.php, thanks if you can solve it, or even help a tiny bit.
PHP Code:
<html>
<?php
session_start();
?>
<head>
<title>PornPumped.com | Porn Pumped Straight to Your PC</title>
<link rel="stylesheet" type="text/css" href="layout.style.css" />
<link rel="icon" type="image/ico" href="images/favicon.ico" />
<script type="text/javascript">
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible";
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden";
}
</script>
<style type="text/css"> table.menu { visibility: hidden; position: absolute; } </style>
</head>
Re: [PHP] Foolish error, but its stumped me.
<?php
session_start();
?>
<html>
Re: [PHP] Foolish error, but its stumped me.
Thanks, but it doesn't do anything lol.
Re: [PHP] Foolish error, but its stumped me.
anything standing before you include the header?
the session start always need to become first (after <?php ofcourse)
Re: [PHP] Foolish error, but its stumped me.
Oh, yes, I fixed it thanks to your help :)
Thankyou, Superfun.