NYCPHP Meetup

NYPHP.org

[nycphp-talk] Who include()'d me?

Chris Shiflett shiflett at php.net
Thu Jul 31 16:23:16 EDT 2003


--- "Nunez, Eddy" <enunez at tiaa-cref.org> wrote:
> I've used $PHP_SELF countless of times before.
> I noticed I could also use $_SERVER[SCRIPT_NAME] for
> absolute path to the "includer".

Just keep in mind that these values represent the resource that the client
requested:

http://example.org/blah.php

In this example, blah.php would be the resource, even if it includes foo.inc
which includes bar.inc.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/



More information about the talk mailing list