Einzelnen Beitrag anzeigen

Chrissi91

Registriert seit: 28. Jul 2005
849 Beiträge
 
#1

[PHP] Sesscionproblem

  Alt 9. Dez 2006, 20:07
Hi,

ich habe ein Problem mit Sessions. Ich habe eine Datei, die ganz oben zu stehen hat:

Code:
<?php
session_start();
?>
Danach kommt dann DocType, etc.

Was ich nich verstehe: Die beiden Fehlermeldungen (hier):

Zitat:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /srv/www/vhosts/pyrgo.de/httpdocs/admin/index.php:1) in /srv/www/vhosts/pyrgo.de/httpdocs/admin/index.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /srv/www/vhosts/pyrgo.de/httpdocs/admin/index.php:1) in /srv/www/vhosts/pyrgo.de/httpdocs/admin/index.php on line 2
Wie kommt das? Ich habe sonst keinen PHP - Code. Nur Session_start();. Der Rest, der danach kommt, ist nur HTML, CSS und JavaScript.

Ich hoffe, mir kann jemand helfen.

Grüße aus Berlin

Chrissi91

P.S.: Es hat sich erledigt. Vor <?php war 1 Leerzeichen. Seit wann pielt das eine Rolle?
  Mit Zitat antworten Zitat