Andy: Cookie nach DB-Anwählung

Hi,

kann man nach einer DB-Anwählung keine Cookies mehr setzen?
Bei mir kommt nähmlich folgende Fehlermeldung:

Warning: Cannot modify header information - headers already sent by (output started at ...confic.php:2) in ...index.php on line 45

in der Zeile 45 der confic.php wird die Datenbank angewählt.

Andy

  1. Hallo Andy,

    Warning: Cannot modify header information - headers already sent by (output started at ...confic.php:2) in ...index.php on line 45
    in der Zeile 45 der confic.php wird die Datenbank angewählt.

    das Problem liegt weniger in der Zeile 45 sondern in der Zeile 2 - dort gibst du nämlich irgendwas aus, was zum senden des headers führt.

    Grüße aus Nürnberg
    Tobias

    --
    Selfcode: sh:( fo:) ch:? rl:( br:< n4:& ie:% mo:| va:) de:] zu:) fl:( ss:| ls:[ js:|
    1. Da fängt bei mir <?php an.
      Ich hab jetzt mal die 1.Zeile (ist leer) weggelöscht, jetzt geht's!

      1. hi,

        Ich hab jetzt mal die 1.Zeile (ist leer) weggelöscht, jetzt geht's!

        eine leerzeile _ist_ eine ausgabe.

        gruss,
        wahsaga

  2. hi,

    Warning: Cannot modify header information - headers already sent by (output started at ...confic.php:2) in ...index.php on line 45

    http://www.dclp-faq.de/q/q-fehler-session-cookie.html

    gruss,
    wahsaga