Re: configuration.inc on php.net
| From: | Gabor Hojtsy | Date: | Sat, 14 Dec 2002 17:51:00 +0000 |
| Subject: | Re: configuration.inc on php.net | ||
| References: | 1 2 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-14173@lists.php.net to get a copy of this message | ||
> > BTW it would be nice to find a way to eliminate this file
> > alltogether, and put the htdig file path into some vhost
> > setting, but PHP unfortunately does not allow users to just
> > invent new PHP.ini settings and put value into them through
> > Apache's httpd.conf, which would be nice in this case, so
> > there would be one place to edit for mirror information...
>
> SetEnv and/or setting environment variables in a RewriteRule
> does the trick for this. they're then accessible in $_SERVER.
Cool, I have tested SetEnv locally, and it seems it is ideal
to use in this case. So I have added information to mirroring.php
how to specify the HTSEARCH_PROG in the vhost configuration.
I have also added code to the search page to accept that setting
(and override configuration.inc setting with it).
So it would be nice to adjust php.net to this, and move the setting
to the vhost section, and remove configuration.inc (as there is no
other data inside it which is needed anymore AFAIK).
Goba