Re: Does this "directory detection" script work for you?
| From: | Curt Zirzow | Date: | Mon, 10 May 2004 03:00:29 +0000 |
| Subject: | Re: Does this "directory detection" script work for you? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185771@lists.php.net to get a copy of this message | ||
* Thus wrote John W. Holmes (holmes072000@charter.net):
>
> I've had a couple people report that the script wasn't finding the paths
> correctly, though, so I'm asking if people could test this out on their
> server and see if it detects the paths or not.
works fine with freebsd/apache-1.3.x/php5rc1
>
> <?php
> //Install path (path to survey.class.php)
> $path = dirname($_SERVER['PATH_TRANSLATED']);
This might be a problem, IIRC, some web servers will not set
PATH_TRANSLATED if no PATH_INFO is being passed.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."