[BLUG] A Couple Questions

Matt Standish blug_at_mailman.cs.indiana.edu
Wed, 31 Jan 2007 10:43:13 -0500


On 1/31/07, Gaddis, Jeremy L. <jlgaddis_at_ivytech.edu> wrote:
> I do something similar, but not quite to that extent.
>
> Each web application has a file under /etc/webapps/ which is a simple
> PHP, e.g.:
>
> <?
>         $dbhost         = "dbserver.example.com";
>         $dbuser         = "username";
>         $dbpass         = "password";
>         $dbname         = "database";
> ?>
>
> And then I just put an "include /etc/webapps/file.php;" at the top of
> the scripts that need it.

This is an excellent idea. Simple and effective.