Re: PATH_TRANSLATED doesn't work correctly !!!
| From: | Heino H. Gehlsen | Date: | Fri, 19 Jan 2001 18:36:22 +0000 |
| Subject: | Re: PATH_TRANSLATED doesn't work correctly !!! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35684@lists.php.net to get a copy of this message | ||
Hmmm...
Thanks for the info, but I allready know it's a bug.
My problem is that I can't recompile PHP on the the server, so I'm desperatly looking for
a way to access the real PATH_TRANSLATED...
In my opinion the lack of a working PATH_TRANSLATED makes PHP rether useless for large scale sites
!!!
Heino H. Gehlsen
----- Oprindelig meddelelse -----
> Its a PHP bug, I've attached a patch (that they persistantly ignore :).
> ----- Original Message -----
> I'm trying to use the clasic CGI environment varable PATH_TRANSLATED via
> Apache's Action directive (directing all requests through a script).
>
> But PHP messes PATH_TRANSLATED up and all I end up with a copy of
> SCRIPT_FILENAME !
>
> I'm using PHP 4.0.3pl1 on a standard Debian 2.2r2 installation with Apache
> httpd 1.3.9 with these directives in httpd.conf:
> Options +MultiViews
> Action text/html /script.php
>
> A resuest for "/index" should result in:
> PATH_TRANSLATED = /path/to/index.html
> PATH_TRANSLATED = /path/to/index.en.html (for the English version)
> PATH_TRANSLATED = /path/to/index.X.html (for the X version)
>
> BUT what I get is:
> PATH_TRANSLATED = /path/to/script.php (no matter what i request !)
>
> Can anyone help me getting the real Apache PATH_TRANSLATED (which is actualy
> shown in phpinfo() under "Apache Environment" but not under "PHP
> Variables")
>
>
> Yours hopefully
> Heino H. Gehlsen