#29746 [Opn->Bgs]: Add a $_SERVER["CURRENT_SCRIPT_NAME"] variable.
| From: | pollita@php.net | Date: | Wed, 18 Aug 2004 23:14:27 +0000 |
| Subject: | #29746 [Opn->Bgs]: Add a $_SERVER["CURRENT_SCRIPT_NAME"] variable. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64897@lists.php.net to get a copy of this message | ||
ID: 29746
Updated by: pollita@php.net
Reported By: gazman at email dot si
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: whatever
PHP Version: Irrelevant
New Comment:
http://www.php.net/manual/en/language.constants.predefined.php
__FILE__
Previous Comments:
------------------------------------------------------------------------
[2004-08-19 01:06:24] gazman at email dot si
Description:
------------
Please add a $_SERVER["CURRENT_SCRIPT_NAME"] variable. It should
contain the name of the current EXECUTING script.
It should be used to tell the code the filename it is in. It would be
used in conjunction with include() and require() functions, as the
$_SERVER["SCRIPT_NAME"] holds the value of the parent script and not
the child script.
It should be fairly easy to do... PHP must know it to parse the file
and i believe you could as well make that availible as a variable from
code. (a read-only variable (constant?) that points to the name of the
currently parsed file)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29746&edit=1