Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.php > #4229
| Path | csiph.com!news.redatomik.org!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
| Newsgroups | de.comp.lang.php |
| Subject | Re: Eltern-Datei bei include |
| Date | Thu, 31 Aug 2017 18:11:43 +0200 |
| Organization | solani.org |
| Lines | 18 |
| 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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | solani.org 1504195900 29517 eJwFwYEBwCAIA7CXVrAdnjPQ/n/CEqageZeoRdOdiBxZE185dss1GxeY3pGuIz5c7FMDX/wdrxE0 (31 Aug 2017 16:11:40 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Thu, 31 Aug 2017 16:11:40 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
| In-Reply-To | <oo9a7r$fk0$1@dont-email.me> |
| Cancel-Lock | sha1:dmKdTEC6KlgAlVcZ+hSa6fQ5OZI= |
| X-User-ID | eJwFwYEBwCAIA7CXYNDizsEq/59ggqBTlQQTg0lT32NKuPyvj4dlQkVP341ZGQFh4Vr7jnkc2hEk |
| X-NNTP-Posting-Host | eJwFwQERADEIAzBLhUHL5PDs8C/hkzw0joLJyM3l2yN4Nq62MOH80GHPSLXdh4oala8h2/UDBqAQCw== |
| Content-Language | de-DE |
| Xref | csiph.com de.comp.lang.php:4229 |
Show key headers only | View raw
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