#29746 [Bgs->Opn]: Add a $_SERVER["CURRENT_SCRIPT_NAME"] variable.
| From: | derick@php.net | Date: | Thu, 19 Aug 2004 07:46:52 +0000 |
| Subject: | #29746 [Bgs->Opn]: Add a $_SERVER["CURRENT_SCRIPT_NAME"] variable. | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969363325@lists.php.net to get a copy of this message | ||
ID: 29746
Updated by: derick@php.net
Reported By: gazman at email dot si
-Status: Bogus
+Status: Open
-Bug Type: Feature/Change Request
+Bug Type: Documentation problem
Operating System: whatever
PHP Version: Irrelevant
New Comment:
Reopening as doc problem, as I think this should be documented there
(even although it's not a variable)
Previous Comments:
------------------------------------------------------------------------
[2004-08-19 01:19:54] gazman at email dot si
damn :D I searched that thing for HOURS! You can anyone inform the
documentation team that they should put a link to THAT site from the
site where the $_SERVER vars are? :D
You made my day!
------------------------------------------------------------------------
[2004-08-19 01:14:18] pollita@php.net
http://www.php.net/manual/en/language.constants.predefined.php
__FILE__
------------------------------------------------------------------------
[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