note 29706 added to reserved.variables
| From: | frappyjohn at dos2linux dot org | Date: | Sat, 22 Feb 2003 03:53:44 +0000 |
| Subject: | note 29706 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44339@lists.php.net to get a copy of this message | ||
Both $PHP_SELF and $SCRIPT_NAME include the path (relative to the document root) plus the file name.
There is no variable that is set to the current script's file name only (without a path).
"Current script" in all of this discussion refers to the "main" or top script,
even if the variable is referenced in an included script. There is no way to reference the name of
the current included script being executed.
--
http://www.php.net/manual/en/reserved.variables.php
http://master.php.net/manage/user-notes.php?action=edit+29706
http://master.php.net/manage/user-notes.php?action=delete+29706
http://master.php.net/manage/user-notes.php?action=reject+29706