Servus, ich habe problem mit php variable.
PHP Notice: Undefined variable: user in /var/www/virtual//server1/htdocs/includes/session.php on line 34
PHP Notice: Undefined index: REMOTE_ADDR in /var/www/virtual//server1/htdocs/includes/session.php on line 36
Was ist falsch ?
PHP Notice: Undefined variable: user in /var/www/virtual//server1/htdocs/includes/session.php on line 34
PHP Notice: Undefined index: REMOTE_ADDR in /var/www/virtual//server1/htdocs/includes/session.php on line 36
PHP Code:
if (!isset ($_COOKIE["kreuzcookie"]) && ($user['id']>0)) // Zeile 34
setcookie("kreuzcookie", mt_rand(0, 50000), time() + (60 * 60 * 24 * 30));
$useripadress = getIP($_SERVER['REMOTE_ADDR']); // Zeile 36