Wieso lässt er mich meine Cookies nicht setzen?
<?php
// Session ID Cookie
include('../functions/functions.php');
include('../functions/shopfunctions.php');
if (!$_COOKIE['cookiesid'])
{
$sid=sessionID();
speichereSessionID($sid);
setcookie("cookiesid",$sid,time()+3600,"/");
}
else
{
$sid=$_COOKIE['cookiesid'];
}
// Language Cookie Test
if (!(isset($_COOKIE['language'])))
{
if (isset($_REQUEST['lang']))
{
setcookie("language", $_REQUEST['lang'], time() + 84 * 3600, "/");
$language=$_REQUEST['lang'];
}
else
{
echo "Please visit <a href="http://www.test.de">www.test.de</a> and choose a language.<br>
These pages require the use of cookies and Javascript";
exit();
}
}
// Cookie vorhanden & update
elseif (isset($_REQUEST['lang']))
{
setcookie("language", $_REQUEST['lang'], time() + 84 * 3600, "/");
$language=$_REQUEST['lang'];
}
// Cookie vorhanden & Benutzung
else
{
$language=$_COOKIE['language'];
}
include('../config/config.inc');
include('../auth/databaseauth.php');
include('../functions/functions.php');
include('../functions/layoutfunctions.php');
include('../functions/shopfunctions.php');
include('../languages/'.$language.'/translation.php');
makeheader($file,$language,$produktname);
?>
Es kommt immer folgende Fehlermeldeung:
Warning: Cannot add header information - headers already sent by (output started at d:\da\functions\functions.php:34) in d:\dentona\pages\top.php on line 10
Warning: Cannot add header information - headers already sent by (output started at d:\da\functions\functions.php:34) in d:\dentona\pages\top.php on line 22
Fatal error: Cannot redeclare printheader_catalog() (previously declared in d:\da\functions\functions.php:2) in d:\dentona\functions\functions.php on line 2