Re: $_SERVER["PATH_TRANSLATED"] returns empty string
| From: | Wico de Leeuw | Date: | Wed, 18 Dec 2002 13:20:18 +0000 |
| Subject: | Re: $_SERVER["PATH_TRANSLATED"] returns empty string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128701@lists.php.net to get a copy of this message | ||
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?)$_SERVER["PHP_SELF"] works as expected (ok) $_SERVER["DOCUMENT_ROOT"] works as expected (ok)OS: RedHat Linux 8.0 Apache: httpd-2.0.40-11 PHP: php-4.2.2-8.0.5 (recompiled from source) Any ideas how to fix this? Best regards, Robert PS: When replaying please CC me as I'm not subscribed to this list, thanks. -- -------------------------------------------------------------------- Robert Nedbal - Czech Technical University in Prague, Czech Republicemail: R.Nedbal@sh.cvut.cz http://www.sh.cvut.cz/~robik/ /* Debuggers are evil. Never ever trust them. */-------------------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php