Re: included_by() possible?

From: Date: Fri, 25 Aug 2000 08:16:55 +0000
Subject: Re: included_by() possible?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-30601@lists.php.net to get a copy of this message
On Fri, 25 Aug 2000, André Langhorst wrote: > > Maybe i see this wrong but in a include you can check $PHP_SELF and stuff > > > that should give you the page that called the include or am i wrong > > PHP_SELF is no var which is available in any environment, The following SAPI modules define it: Apache CGI ISAPI NSAPI Java Servlet We can probably move the definition one level up so that it is available everywhere. I'll look into that. > I don´t use it, I don´t know if it´s good for this, maybe > on some systems (I think apache mod) It is better than your proposal. Your proposal assumes that your include file will be included by the main app and not by other helper files (like prepend.php). - Sascha

« previous php.dev (#30601) next »