Re: $PATH_INFO not working
| From: | Torsten Roehr | Date: | Fri, 23 Apr 2004 09:27:52 +0000 |
| Subject: | Re: $PATH_INFO not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184369@lists.php.net to get a copy of this message | ||
"Noel Da Costa" <noel.dacosta@magharl.co.uk> wrote in message
news:20040423085536.72845.qmail@pb1.pair.com...
> Hi,
>
> Anyone know what might stop the $PATH_INFO variable from working? I
> developed a nav system using this which works on the test server, but not
on
> the live server. I'm guessing this is something to do with the way PHP
> (4.2.2) and Apache (2.0) were compiled on the live server (I've posted
that
> question on php.install), but what I'm wondering is...
>
> Is there perhaps a code fix/work-around I could apply in my scripts to
> replace the $PATH_INFO with something that achieves the same effect,
without
> having to redisign my entire nav system.
>
> Thanks,
> Noel
Hi Noel,
try accesing it via $_SERVER['PATH_INFO'].
Regards, Torsten