Sun, 5.Sep.2010  04:27 
Back

Root-Boards
Script Discussion
Products
Misc

Community
Discussion Board
Tipps & Tricks
Jobs
Mobile-Logo
Newsletter

Products
Reedit
Sie wollen Ihren Produktkatalog crossmedial publizieren? Werfen Sie einen Blick auf ReEdit.


THREAD   specify config file to load in URL for multiple DBs

06.11.2003 21:41h
I have been experimenting with a way to (easily) specify a config file to load so that different database configurations can used. It is not so easy.. at least not for me as I am a PHP novice I came up with this - I created index.php which has the same frameset as index.html, but if a config is passed in like index.php?config=./configs/dnedoc.php the confifg file is passed to tables.php like ''... then all I needed to do is to modify config.php to detect the config cookie and if it is set, load the config file specified in the cookie instead of config.php.. it seems to work great. What do you guys think? Is this something that could be included in the distribution? Is there a better way?
Monty S   eMail







New Posting


User:
Pass:
You have no pass or forgot your pass click here.

To add a resource, please register.


Mit freundlicher Unterstützung von www.viersicht.de


©bitesser 2003
     FAQ      AGB's      About      Contact      Imprint      Top     
FAQ AGB ABOUT KONTAKT IMPRESSUM
Discussion Board