SESSIONS problemer
Når jeg åbner index.php står der følgende:Warning: Cannot send session cookie - headers already sent by (output started at /customers/krildesign.dk/krildesign.dk/httpd.www/index.php:7) in /customers/krildesign.dk/krildesign.dk/httpd.www/index.php on line 13
Warning: Cannot send session cache limiter - headers already sent (output started at /customers/krildesign.dk/krildesign.dk/httpd.www/index.php:7) in /customers/krildesign.dk/krildesign.dk/httpd.www/index.php on line 13
Hele index.php koden
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>[Krildesign]::[Kriller Online]</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="Webdesign, hjemmeside, Kristian, Helle, Jespersen, billigt, design, udstilling, faste priser, homepage, webpage, multimediedesign, københavn, kriller">
<META NAME="description" CONTENT="Krildesign er min "legeplads" hvor jeg kan arbejde med nye ideer. Ydermere fungerer det som et udstillingsvindue for mine projekter. Hvis du har brug for en billig hjemmeside kan du kontakte mig her på siden. Altid faste priser.">
<META NAME="author" CONTENT="Kristian Helle Jespersen">
<META NAME="ROBOTS" CONTENT="ALL">
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?
include "connect.php";
session_start();
$mail = $_POST['mail'];
$form = $_POST['form'];
include "smileys.php";
//Laver automatiske links vha af to funktioner
function url2link ($str) {
$str = preg_replace("/((ht|f)tp:\/\/)[\w.-]+(?(?=\/)[^\s<>]+)/i", "<a href=\"\\0\" target='_blank'>\\0</a>", $str);
$str = preg_replace("/(?<!http:\/\/)(www\.)[\w.-]+(?(?=\/)[^\s<>]+)/i", "<a href=\"http://\\0\" target='_blank'>\\0</a>", $str);
return $str;
}
function email2link ($str) {
return preg_replace("/[\w.-]+@[\w-]+\.[\w.-]+/i", "<a href=\"mailto:\\0\">\\0</a>", $str);
}
?>
<table width="750" height="100%" border="3" align="center" bordercolor="#FFFFFF" cellpadding="0" cellspacing="0" bgcolor="#4a7d4a">
<tr>
<td><table width="750" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100" height="100"><div align="center"><img src="image/mand.gif" width="59" height="45"></div></td>
<td height="100">
<table width="80%">
<tr>
<td>
<div class="overskrift" align="center">KRILDESIGN.DK </div>
</td>
</tr>
</table>
</td>
</tr>
<tr align="right">
<td width="100" height="100%" align="center" valign="top">
<br>
<p><a href="<? $_SERVER[PHP_SELF]?>?navi=about" class="hlinks">Om...</a></div></p>
<p><a href="<? $_SERVER[PHP_SELF]?>?navi=web" class="hlinks">Webdesign</a></div></p>
<p><a href="<? $_SERVER[PHP_SELF]?>?navi=blog" class="hlinks">Blog</a></div></p>
<p><a href="<? $_SERVER[PHP_SELF]?>?navi=projekt" class="hlinks">Projekter</a></div></p>
<p><a href="<? $_SERVER[PHP_SELF]?>?navi=links" class="hlinks">Links</a></div></p>
<p><a href="<? $_SERVER[PHP_SELF]?>?navi=guest" class="hlinks">Gæstebog</a></div></p>
<p><a href="<? $_SERVER[PHP_SELF]?>?navi=forum" class="hlinks">Forum</a></div></p>
<p><a href="<? $_SERVER[PHP_SELF]?>?navi=galleri" class="hlinks">Galleri</a></div></p>
<p><a href="mailto:megalomania@krildesign.dk" class="hlinks">Kontakt</a></div></p>
<p><a href="<? $_SERVER[PHP_SELF]?>?navi=login" class="hlinks">Login</a></div></p>
</td>
<td width="80%" height="100%">
<div class="transbox" align="left">
<?
if ($navi=="guest")
{
include "guest.php";
}
else if ($navi=="login")
{
include "login.php";
}
else if ($navi=="blog")
{
include "blog.php";
}
else if ($navi=="web")
{
include "web.php";
}
else if ($navi=="about")
{
include "about.php";
}
else if ($navi=="galleri")
{
include "galleri.php";
}
else if ($navi=="links")
{
include "links.php";
}
else if ($navi=="forum")
{
include "construct.php";
}
else if ($navi=="projekt")
{
include "projekt.php";
}
else if ((!$navi) || ($navi==""))
{
include "construct.php";
}
?>
</div>
</td>
</tr>
<tr>
<td width="100" height="100">
<div class="txt" align="center">
<?
if($_SESSION[brugernavn])
{
echo "Logged ind som: \n" . $_SESSION[brugernavn];
}
?>
</div>
</td>
<td height="100"><table width="650" height="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="285">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div class="txt" align="center">SENESTE INDLÆG I BLOG:</div></td>
</tr>
<tr>
<td>
<?
Include "blogind.php";
?>
</td>
</tr>
</table></td>
<td width="285"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div class="txt" align="center">SENESTE INDLÆG I FORUM:</div></td>
</tr>
<tr>
<td>
<?
Include "forumind.php";
?>
</td>
</tr>
</table>
</td>
<td width="80"> <div align="right"><img src="image/Kriller.gif" width="72" height="100"></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Nogle der kan se problemet?
