ich hab das problem das ich immer wenn ich eine session sraten will folgenden fehler bekomm
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /srv/www/web1/html/forum/index.php:8) in /srv/www/web1/html/forum/head.php on line 8
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /srv/www/web1/html/forum/index.php:8) in /srv/www/web1/html/forum/head.php on line 8
die head.php sieht folgender maßen aus:
PHP-Code:
<?
$autor = Gast;
session_start();
if($autor == Gast)
{
echo "[url="login.php>Login</a>"]Registrieren[/url]";
}
else
{
echo "[url="user.php?>Profil</a>"]Logout(".$autor.")[/url]";
}?>
in Zeile 8 der index.php fängt der php code mit <? an.
Was ist an dem Code nun falsch.
Ich hab auf meinen PC XAMPP zum testen mit PHP 5.0.3 und da funzt es auf dem Webserver ist PHP 4.3.1
MfG
BastardOperator