Re: #26429 [Opn]: Documentation for $_SERVER["SCRIPT_FILENAME"] incorrect
| From: | Jakub Vrana | Date: | Tue, 16 Dec 2003 13:24:59 +0000 |
| Subject: | Re: #26429 [Opn]: Documentation for $_SERVER["SCRIPT_FILENAME"] incorrect | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969357487@lists.php.net to get a copy of this message | ||
> However, skissane is correct. SCRIPT_FILENAME does return the relative
> path in the CLI version. The question is, should the code be fixed to
> make it absolute, or should the documentation have a note appended
> saying that it's not absolute in the CLI version?
I think that SCRIPT_FILENAME should be absolute as relative is
PHP_SELF. It will be also more consistent with web environment.
Jakub Vrana