Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Fehlermeldung: "Cannot modify header information - headers already sent by"

Empfohlene Antworten

Veröffentlicht

Alle alle zusammen,

ich habe eine weboberfläche gebastelt, wo man sich anmelden muss. Beim Ausprobieren, bekommt ich beim Login diesen Fehler:

Warning: Cannot modify header information - headers already sent by (output started at C:\Programme\xampp\htdocs\aufgabe\functions\dbconnect.php:6) in C:\Programme\xampp\htdocs\aufgabe\functions\login.php on line 34

In anderen Foren gab es die Infos, dass ich vorm <? die Lerrzeichen wegnehmen muss, aber bei mir sind dort keine vorhanden!

Bitte um Hilfe

zeig doch bitte die zeilen um dbconnect.php:6 herum.

s'Amstel

Ok hat sich erledigt, da waren doch noch zeilen, die das Programm nicht haben wollte anscheinend! Also trotzdem danke

Alle alle zusammen,

In anderen Foren gab es die Infos, dass ich vorm <? die Lerrzeichen wegnehmen muss, aber bei mir sind dort keine vorhanden!

Bitte um Hilfe

Es geht nicht um Leerzeichen vor dem <? sondern kannst du die Header Informationen nicht mehr verändern, sobald eine ausgabe z.B. echo "..."; erfolgt ist.

Warning: Cannot modify header information - headers already sent by (output started at C:\Programme\xampp\htdocs\aufgabe\functions\dbconnect.php:6) in C:\Programme\xampp\htdocs\aufgabe\functions\login.php on line 34

Und was hat das mit Datenbanken zu tun? :confused:

Und was hat das mit Datenbanken zu tun? :confused:

naja ein mysql_connect (...) or die (...) kann sowas auch mal verursachen^^ aber ok in PHP wäre er besser aufgehoben gewesen ;)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.