Bug #18454 Updated: $PHP_SELF / .htaccess & mod_action
| From: | tal@php.net | Date: | Sun, 21 Jul 2002 17:04:55 +0000 |
| Subject: | Bug #18454 Updated: $PHP_SELF / .htaccess & mod_action | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14739@lists.php.net to get a copy of this message | ||
ID: 18454
Updated by: tal@php.net
Reported By: harry@ilo.de
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: WinXP
PHP Version: 4.1.2
New Comment:
This is a mod_action bug, marking as bogus.
-Tal
Previous Comments:
------------------------------------------------------------------------
[2002-07-21 07:23:03] harry@ilo.de
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.
------------------------------------------------------------------------
[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