note 25985 rejected from reserved.variables by nicos
| From: | nicos@php.net | Date: | Mon, 14 Oct 2002 14:28:55 +0000 |
| Subject: | note 25985 rejected from reserved.variables by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38050@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.