Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.php > #4226
| Path | csiph.com!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 12:49:27 +0200 |
| Organization | solani.org |
| Lines | 23 |
| Message-ID | <oo8pjm$fti$1@solani.org> (permalink) |
| References | <oo8l5k$7j1$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | solani.org 1504176566 16306 eJwFwYEBwDAEBMCVNHiMkxf2H6F3rvjQYXCYry95RtTBLeTW5mvOuUNpTRYjLEci9Y1H8/40CBID (31 Aug 2017 10:49:26 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Thu, 31 Aug 2017 10:49:26 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
| In-Reply-To | <oo8l5k$7j1$1@dont-email.me> |
| Content-Language | de-DE |
| Cancel-Lock | sha1:wdadrmHiz997Zvt3ii9nqC/8MD4= |
| X-User-ID | eJwFwQkRwEAIBDBLZYAF5PDc+pfQxBWCDYPDnM567xjD/mavdNtqNLJyxIOmBMQyZY/Sc/oDOoUR0w== |
| X-NNTP-Posting-Host | eJwFwYERACEIA7CVBG2p4/yB3X+ET7AZ7DoEDwzflLI/T0IM1RzRDt9FvikbHe5d80RVrh8XuRD9 |
| Xref | csiph.com de.comp.lang.php:4226 |
Show key headers only | View raw
Am 31.08.2017 um 11:38 schrieb Ralph Stahl: > Für Testzwecke in einer großen Anwendung möchte ich protokollierfen > können, in welcher Datei eine andere included wird. Also: > > datei1.php oder datei2.php oder... enthalten > > include __DIR__ . '/init.php'; > > und ich möchte in init.php rausfinden, wie die Datei heißt, die init.php > einbindet (also datei1.php oder datei2.php oder...). > > Geht sowas? __FILE__ würde ja immer __DIR__ . '/init.php' liefern, das > geht also nicht. > > Danke im Voraus für Hinweise! Vielleicht fällt mir ja auch nur nicht > ein, wonach ich suchen könnte :-). "php find including file" führt mich zu <https://stackoverflow.com/questions/6804539/get-name-of-file-that-is-including-a-php-script>. -- 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