Bug #12310 Updated: $SCRIPT_FILENAME

From: Date: Sun, 22 Jul 2001 22:10:50 +0000
Subject: Bug #12310 Updated: $SCRIPT_FILENAME
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60678@lists.php.net to get a copy of this message
ID: 12310 Updated by: andy Reported By: michael@frifra.de Old Status: Open Status: Bogus Bug Type: Any Old Operating System: WinNT IIS Operating System: WinNT IIS PHP Version: 4.0.6 New Comment: This is because microsoft's directory structure uses backslashes , not forward slashes in your script. Try replacing the "/" with "\\" Previous Comments: ------------------------------------------------------------------------ [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 (#60678) next »