[Phplib-users] re: phplib: dynamic page_open values
Brought to you by:
nhruby,
richardarcher
|
From: David G. <dav...@em...> - 2002-04-30 23:02:56
|
Clarifications: - I am hosting many virtual domains (xxx-1-n.mydomain.com). - Data -must- be separated by different database instances (business requirement. Some databases may actually have to be physically separated on different servers). Long-term maintenance will be grin-and-bear-it time. - I wanted as little phplib code changes as possible. - The 'permanent key' that I called for would be some key indicator of which dataset/database to load from. Great suggestions, but I think I'll use Matthew's: Use multiple local.inc files, uniquely named by pre-pending the virtual host name ($HTTP_HOST) to local.inc. I changed my prepend.inc to: require($_PHPLIB["libdir"] . "$HTTP_HOST-local.inc"); and created multiple xxx-local.inc files, which should do the trick (the only differences will actually be the database names at this point). Thanks. David Glenn da...@so... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 |