Re: [Phplib-users] re: phplib: dynamic page_open values
Brought to you by:
nhruby,
richardarcher
|
From: Mike G. <Mik...@sa...> - 2002-04-30 23:39:30
|
Along the same lines, and (I think) with more long-term flexibility and maintainability, would be to put the local.inc [and other virtual-domain-specific files] in a separate directory (php_virtualdomainname) for each virtual domain, any extensions to the PHPLib classes which are common to all virtual domains in a common directory (php_common), and the PHPLib classes in their own directory (php_lib). Then specify the include path for each virtual domain within the virtual host tags in the httpd.conf file: php_value include_path ".:/path/to/httpd/php_virtualdomainname:/path/to/httpd/php_common:/path/to/httpd/php_lib" Cheers! Mike Green David Glenn wrote: > 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 > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net_______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users -- _______________________________________________________________________ Michael D Green SaeSolved:: Custom-Built Web Applications -- http://www.saesolved.com 1552 Beachview Drive, Virginia Beach, VA 23464-7225, USA; 757.467.1552 http://www.everypeople.net http://www.sitewidgets.com _______________________________________________________________________ |