note 25985 added to reserved.variables
| From: | brent at rack1 dot php dot net | Date: | Mon, 14 Oct 2002 14:21:20 +0000 |
| Subject: | note 25985 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38048@lists.php.net to get a copy of this message | ||
Using $PHP_SELF in an included or required file will work differently.
echo $PHP_SELF;
Will return the filename the of the file that the included file is included into. (There's got
to be a better way to say that ;)
But, if the page to be included is viewed as a standalone, it will return its own filename.
--
http://www.php.net/manual/en/reserved.variables.php
http://master.php.net/manage/user-notes.php?action=edit+25985
http://master.php.net/manage/user-notes.php?action=delete+25985
http://master.php.net/manage/user-notes.php?action=reject+25985