|
From: Joe Z. <jz...@co...> - 2004-03-16 03:36:37
|
I have a plan to make bobs support both db3 and db4 in php. I'd like to run it by anyone who cares to comment. 1) During the ./configure phase (./configure also runs during rpm install) see whether db3 or db4 is supported. Set a variable in inc/config.php: $sys_conf["dbhandler"] would be either "db3" or "db4". 2) add a function get_db_handler() to class_config.php. 3) include class_config.php in any files that use dba_open() and use a variable loaded from get_db_handler() for the third parameter (db handler) in dba_open(). A php upgrade from db3 to db4 would require re-installing bobs or just changing db3 to db4 in config.php. Any comments are welcome. Joe Zacky |