Bug #18454 Updated: $PHP_SELF / .htaccess & mod_action

From: Date: Sun, 21 Jul 2002 11:23:05 +0000
Subject: Bug #18454 Updated: $PHP_SELF / .htaccess & mod_action
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14728@lists.php.net to get a copy of this message
ID: 18454 Updated by: harry@ilo.de Reported By: harry@ilo.de Status: Open Bug Type: Variables related Operating System: WinXP PHP Version: 4.1.2 New Comment: I'm using mod_action (Apache 1.3.23) in a .htaccess file to use a PHP-File as a parser for other documents: ---------.htaccess------------------- AddType text/html .eh AddHandler eh-script .eh Action eh-script "/eh/parser.php" ------------------------------------- If I now call a .eh-file directly, say http://localhost/eh/test.eh, and try to determine the documentname of parser.php with $PHP_SELF, $PHP_SELF ist set to /eh/parser.php/eh/test.eh and not to /eh/parser.php as expected. I could use __FILE__ to work around this (__FILE__ is set correctly), but this doesn't work with includes when I need the name of the main parser file. Previous Comments: ------------------------------------------------------------------------ [2002-07-21 06:54:36] harry@ilo.de I'm using mod_action (Apache 1.3.23) in a .htaccess file to use PHP as a parser for other documents: ---------.htaccess------------------- AddType text/html .eh AddHandler eh-script .eh Action eh-script "/eh/parser.php" ------------------------------------- If I now call a .eh-file directly, say http://localhost/eh/test.eh, and try to determine the documentname of parser.php with $PHP_SELF, $PHP_SELF ist set to /eh/parser.php/eh/test.eh and not to /eh/parser.php as expected. I could use __FILE__ to work around this (__FILE__ is set correctly), but this doesn't work with includes when I need the name of the main parser file. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18454&edit=1

« previous php.bugs (#14728) next »