Bug #12310 Updated: $SCRIPT_FILENAME
| From: | andy@php.net | Date: | Sun, 22 Jul 2001 22:18:16 +0000 |
| Subject: | Bug #12310 Updated: $SCRIPT_FILENAME | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60679@lists.php.net to get a copy of this message | ||
ID: 12310
Updated by: andy
Reported By: michael@frifra.de
Status: Bogus
Bug Type: Any
Operating System: WinNT IIS
PHP Version: 4.0.6
New Comment:
Also, make sure that register_globals is set to on in your
php.ini file.
Previous Comments:
------------------------------------------------------------------------
[2001-07-22 18:10:50] andy@php.net
This is because microsoft's directory structure uses backslashes
, not forward slashes in your script. Try replacing the "/" with "\\"
------------------------------------------------------------------------
[2001-07-22 18:06:45] michael@frifra.de
<?php
$path=dirname($SCRIPT_FILENAME);
include($path."/inc/navi_d.inc");
?>
The code is ok and work on several servers, but on my own M$ IIS i get the return Message:
Warning: Undefined variable: SCRIPT_FILENAME in C:\Inetpub\wwwroot\informatik\index.php3 on line 50
Warning: Failed opening '/inc/navi_d.inc' for inclusion (include_path='') in
C:\Inetpub\wwwroot\informatik\index.php3 on line 51
What could be the reason?
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12310&edit=1