Indyk
31.08.2006, 10:48:05
hello ich habe ein problem mit folgendem code
session_start();
$_SESSION['ip'] = $_SERVER['REMOTE_ADDR']; //SESSION IP
if(!isset($COOKIE['longjohntom'])){
echo "KEIN COOKIE";
setcookie("longjohntom","muh",time()+3600,"/","longjohntom.com");
if(isset($_COOKIE['longjohntom'])){
echo "COOKIE ANGELEGT<br>";
}else{
echo "FEHLER KANN COOKIE NICHT ANLEGEN";
}
}
/*
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/..../index.php:5) in
*/
ich weiss es darf keine ausgabe vor session oder cookies erfolgen
aber dort ist keine ausgabe, wie kann ich mir helfen?
prüfen? wo der fehler ist?
session_start();
$_SESSION['ip'] = $_SERVER['REMOTE_ADDR']; //SESSION IP
if(!isset($COOKIE['longjohntom'])){
echo "KEIN COOKIE";
setcookie("longjohntom","muh",time()+3600,"/","longjohntom.com");
if(isset($_COOKIE['longjohntom'])){
echo "COOKIE ANGELEGT<br>";
}else{
echo "FEHLER KANN COOKIE NICHT ANLEGEN";
}
}
/*
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/..../index.php:5) in
*/
ich weiss es darf keine ausgabe vor session oder cookies erfolgen
aber dort ist keine ausgabe, wie kann ich mir helfen?
prüfen? wo der fehler ist?