Click to See Complete Forum and Search --> : How do I get _SERVER["PATH_TRANSLATED"]?


OM2
08-02-2007, 12:12 PM
Newbie question: how do I get _SERVER["PATH_TRANSLATED"]?

I'm messing around with some open source code.
One of the things you need to give is the absolute path on the server.

From another post, I was told to look at phpinfo(); which gives the required path, which is the value for _SERVER["PATH_TRANSLATED"].

I thought I would be able to use this just by calling it.
But I can't.

What am I doing wrong?

Thanks.


OM

NogDog
08-02-2007, 08:45 PM
It is an array variable element: $_SERVER['PATH_TRANSLATED'].

OM2
08-03-2007, 07:28 AM
hmm... i;m sure i tried that already: didn't work.
but when i cut and pasted what u put: it worked.
bizaare! thanks a lot.