Bug #12310 Updated: $SCRIPT_FILENAME

From: Date: Sun, 22 Jul 2001 23:30:29 +0000
Subject: Bug #12310 Updated: $SCRIPT_FILENAME
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60696@lists.php.net to get a copy of this message
ID: 12310 User updated by: michael@frifra.de Reported By: michael@frifra.de Status: Bogus Bug Type: Any Operating System: WinNT IIS PHP Version: 4.0.6 New Comment: In my php.ini is: register_globals = ON if i declare global $SCRIPT_FILENAME -> i get an empty string! On all other servers i can run my script, only on my own... why? Previous Comments: ------------------------------------------------------------------------ [2001-07-22 18:18:16] andy@php.net Also, make sure that register_globals is set to on in your php.ini file. ------------------------------------------------------------------------ [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

« previous php.dev (#60696) next »