Hi,
bisher hatte ich eine Datei eingefügt mit require_once ...Datei.
Jetzt benötige ich sie ein weiteres Mal und habe sie noch einmal mir require_once ...Datei (Betonung auf once) eingefügt.
Ich habe keinen Fehler bekommen
Ist ja auch nicht Sinn der Sache.
require_once/include_once sorgen dafür, dass eine Datei nur einmal eingebunden wird, und nachfolgende Versuche die gleiche Datei erneut einzubinden, einfach stumm „nichts“ bewirken – ohne Fehlermeldung natürlich, denn sonst wäre dieses „rundum sorglos“-Konstrukt weit weniger sinnvoll einsetzbar.
und die Datei wurde auch zweimal eingefügt.
Und das hast du woran gemerkt?
MfG ChrisB
--
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/