Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.php > #4229
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Newsgroups | de.comp.lang.php |
| Subject | Re: Eltern-Datei bei include |
| Date | 2017-08-31 18:11 +0200 |
| Organization | solani.org |
| Message-ID | <oo9cfs$sqd$1@solani.org> (permalink) |
| References | <oo8l5k$7j1$1@dont-email.me> <oo8pjm$fti$1@solani.org> <oo9a7r$fk0$1@dont-email.me> |
Am 31.08.2017 um 17:37 schrieb Ralph Stahl: > Christoph M. Becker schrieb: > >> "php find including file" führt mich zu >> <https://stackoverflow.com/questions/6804539/get-name-of-file-that-is-including-a-php-script>. > > Vielen Dank! Die Lösung mit basename($_SERVER['PHP_SELF']) ist ja > richtig elegant! Ich wusste nicht, dass PHP_SELF nicht das includete > File meint. Das $_SERVER Array wird befüllt, bevor überhaupt ein PHP-Skript ausgeführt wird – kann also gar nichts von includes wissen. Alternativ zu PHP_SELF könnte auch SCRIPT_FILENAME oder SCRIPT_NAME interessant sein. Siehe auch <http://php.net/manual/en/reserved.variables.server.php>. -- Christoph M. Becker
Back to de.comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar
Eltern-Datei bei include Ralph Stahl <post@rstahl.de> - 2017-08-31 11:38 +0200
Re: Eltern-Datei bei include "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-08-31 12:49 +0200
Re: Eltern-Datei bei include Ralph Stahl <post@rstahl.de> - 2017-08-31 17:37 +0200
Re: Eltern-Datei bei include "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-08-31 18:11 +0200
Sicherheitsrisiko $PHP_SELF (was: Eltern-Datei bei include) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-09-08 11:53 +0200
Re: Sicherheitsrisiko $PHP_SELF "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-09-08 12:52 +0200
Re: Sicherheitsrisiko $PHP_SELF Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-09-08 12:58 +0200
Re: Eltern-Datei bei include Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2017-08-31 16:45 +0000
Re: Eltern-Datei bei include Ralph Stahl <post@rstahl.de> - 2017-09-02 09:13 +0200
csiph-web