Bug #12310 Updated: $SCRIPT_FILENAME
| From: | andy@php.net | Date: | Mon, 23 Jul 2001 00:10:04 +0000 |
| Subject: | Bug #12310 Updated: $SCRIPT_FILENAME | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60709@lists.php.net to get a copy of this message | ||
ID: 12310
Updated by: andy
Reported By: michael@frifra.de
Old Status: Feedback
Status: Bogus
Bug Type: Variables related
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
Ok...
I can't help you anymore. This is totally bogus.
The linux thing was a joke, because nothing like this would happen with linux.
(*Andy*)
Previous Comments:
------------------------------------------------------------------------
[2001-07-22 20:08:15] michael@frifra.de
If i replace $SCRIPT_FILENAME with $HTTP_SERVER_VARS["SCRIPT_NAME"] the dirname function
only returns the path from the inet_root but not from the harddrive root.
if i type in the whole path manualy and the inclusion woks, i see that
$REQUEST_URI
is also empty... so my whole project could not work at my server...
I think its a general configuration problem, but what sholud i do?
"--By the way, get Linux." -> later... i have no experience with Linux
------------------------------------------------------------------------
[2001-07-22 19:56:17] andy@php.net
Sorry about that...
replace $SCRIPT_FILENAME with $HTTP_SERVER_VARS["SCRIPT_NAME"]
if that doesn't work, I am stumped.
--By the way, get Linux.
(*Andy*)
------------------------------------------------------------------------
[2001-07-22 19:53:23] michael@frifra.de
If i use:
$path=dirname($HTTP_SERVER_VARS["SCRIPT_FILENAME"]);
i get:
Warning: Undefined index: SCRIPT_FILENAME
------------------------------------------------------------------------
[2001-07-22 19:52:52] cynic@php.net
PHP doesn't set $HTTP_SERVER_VARS['SCRIPT_FILENAME'], but
$HTTP_SERVER_VARS['SCRIPT_NAME'].
this is bogus.
------------------------------------------------------------------------
[2001-07-22 19:49:12] andy@php.net
Please replace $SCRIPT_FILENAME with
$HTTP_SERVER_VARS["SCRIPT_FILENAME"]
so $path=dirname($SCRIPT_FILENAME);
would be changed to
$path=dirname($HTTP_SERVER_VARS["SCRIPT_FILENAME"]);
Please tell me if this works.
Status -> Feedback
Type -> Variables related
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=12310
Edit this bug report at http://bugs.php.net/?id=12310&edit=1