Re: Proposal: Establish DB connections during module_init
| From: | Manuel Lemos | Date: | Wed, 07 Jun 2000 16:48:30 +0000 |
| Subject: | Re: Proposal: Establish DB connections during module_init | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20517@lists.php.net to get a copy of this message | ||
Precedence: bulk
Hello Rasmus,
On 07-Jun-00 00:24:23, you wrote:
>Anybody see why this might be a bad idea? Of course it would be
>optionally triggered by config directives. We could use the existing
>default_host and default_user settings and just flick a switch.
I think it is a good idea. While you are at it, make sure you support
also other DBMS besides MySQL.
><VirtualHost www.php.net>
> php_admin_value mysql.default_host=localhost
> php_admin_value mysql.default_user=rasmus
> php_admin_value mysql.default_password=foobar
> php_admin_value mysql.autoconnect=On
> ...
></VirtualHost>
OTOH, I don't know if developers will want to have their database passwords
in clear text scattered for more places that it should. Some people use
databases to protect the content of their sites. Having passwords in the Apache
configuration makes it easier for that protection be defeated. It would be
better (not absolutely safe though) to have database password defined in
PHP code where the user thinks its best.
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org
--
E-mail: mlemos@acm.org
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--