Hallo ich bekomme diese Warnmeldung aber ich weiß nicht warum
Warning: Cannot add header information - headers already sent by (output started at /srv/www/htdocs/web2/html/coolpixx/bilder/HTML/neuekom.php:1) in /srv/www/htdocs/web2/html/coolpixx/bilder/HTML/neuekom.php on line 38
Es sind neue Kommentare seit deinem letzen Besuch vorhanden
der PHP Code sieht so aus:
das ruf ich in einem Popup auf!
Kann mir da jemand weiterhelfen an was das liegt?
MFG
Druckgott
Warning: Cannot add header information - headers already sent by (output started at /srv/www/htdocs/web2/html/coolpixx/bilder/HTML/neuekom.php:1) in /srv/www/htdocs/web2/html/coolpixx/bilder/HTML/neuekom.php on line 38
Es sind neue Kommentare seit deinem letzen Besuch vorhanden
der PHP Code sieht so aus:
PHP:
<title>test</title><?php
function get_size($ordner)
{
$handle = opendir($ordner);
while ($file = readdir ($handle))
{
if($file != "." && $file != "..")
{
if(is_dir($ordner."/".$file))
{
$size = $size + get_size($ordner."/".$file);
$size = $size + filesize($ordner."/".$file);
}
else
{
$size = $size + filesize($ordner."/".$file);
}
}
}
closedir($handle);
return $size;
}
function transform_size($size)
{
return round($size/(1),2);
}
$mb = transform_size(get_size("."));
if (isset($_COOKIE["coolpixx"]))
{
$fileSize = $_COOKIE["coolpixx"];
if ($fileSize != $mb)
{
// Cookie mit einer Lebensdauer von 30 Tagen
setCookie("coolpixx", $mb, time()+2073600);
echo "Es sind neue Kommentare seit deinem letzen Besuch vorhanden";
}
else
echo "Es gibt keine neuen Kommentare";
}
else
{
// Cookie mit einer Lebensdauer von 30 Tagen
setCookie("coolpixx", $mb, time()+2073600);
echo "Du warst wohl noch nicht da also schau mal ob Kommentare dabei sind";
}
?>
das ruf ich in einem Popup auf!
Kann mir da jemand weiterhelfen an was das liegt?
MFG
Druckgott