
 |
 |
 |
 |
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 |
 |  |
|

|
 |
 |
 |
|



 |