Re: [PHP] $_SERVER[PATH_TRANSLATED] returns empty string

2002-12-20 Thread Robert Nedbal
On Wed, 18 Dec 2002, Chris Hewitt wrote: Robert Nedbal wrote: So should I try to use apache 1.x instead of apache2? Pass on that, I have no experience of Apache 2, but I do not think it is intended for production yet. Looking at phpinfo() on my computer here (GNU/Linux RedHat 7.3 PHP 4.1.2

Re: [PHP] $_SERVER[PATH_TRANSLATED] returns empty string

2002-12-20 Thread Dries Verachtert
Is $_SERVER[SCRIPT_FILENAME] the information you need? (on apache 2.0, php 4.2.2) Kind regards, Dries Verachtert On Fri, 2002-12-20 at 15:40, Robert Nedbal wrote: On Wed, 18 Dec 2002, Chris Hewitt wrote: Robert Nedbal wrote: So should I try to use apache 1.x instead of apache2? Pass

Re: [PHP] $_SERVER[PATH_TRANSLATED] returns empty string

2002-12-18 Thread Wico de Leeuw
Maybe basename($_SERVER['SCRIPT_NAME']); At 14:10 18-12-02 +0100, Robert Nedbal wrote: Hi, I'm having problems with my PHP installation. When I try to get real path to my script by using $_SERVER[PATH_TRANSLATED], I receive empty string. $_SERVER[PATH_TRANSLATED] empty string (why?)

Re: [PHP] $_SERVER[PATH_TRANSLATED] returns empty string

2002-12-18 Thread Robert Nedbal
Hi, thanks for your reply. But changing source code in my setup is not a long term option. My problem is that $_SERVER[PATH_TRANSLATED] gives me empty string. Does anybody know how to fix my PHP installation, so $_SERVER[PATH_TRANSLATED] will give me correct file path? Best regards, Robert On

Re: [PHP] $_SERVER[PATH_TRANSLATED] returns empty string

2002-12-18 Thread Chris Hewitt
Robert Nedbal wrote: Hi, thanks for your reply. But changing source code in my setup is not a long term option. My problem is that $_SERVER[PATH_TRANSLATED] gives me empty string. Does anybody know how to fix my PHP installation, so $_SERVER[PATH_TRANSLATED] will give me correct file path?

Re: [PHP] $_SERVER[PATH_TRANSLATED] returns empty string

2002-12-18 Thread Robert Nedbal
On Wed, 18 Dec 2002, Chris Hewitt wrote: Robert Nedbal wrote: Hi, thanks for your reply. But changing source code in my setup is not a long term option. My problem is that $_SERVER[PATH_TRANSLATED] gives me empty string. Does anybody know how to fix my PHP installation, so

Re: [PHP] $_SERVER[PATH_TRANSLATED] returns empty string

2002-12-18 Thread Chris Hewitt
Robert Nedbal wrote: Are you implying that it used to work on another computer, or before an upgrade? If so, can you compare the php.ini files? Otherwise maybe its a bug (php with Apache2 I don't think is stable yet). HTH Chris Yes exactly, it's working on our production server (apache 1.x,