Hi Paul,
On 2 Feb 2001, Barnett, Paul G wrote:
> In config.php it says that for php4, I must use 'dba' (or default , which does
> the same) where I was using 'dbm' for php3.
>
> However, dbalib.php does not have the new functions RemovePage,
> GetWikiPageLinks or SetWikiPageLinks, which means that some of the new
> functionality is not available.(5 best...., remove page, etc) They are
> in dbmlib.php, and if I force use of dbmlib in php4, it seems to work.
You can use dbmlib.php if you've compiled support for the dbm* functions
into PHP. In fact, dbalib.php is just a copy of dbmlib.php with the
function names and signatures changed. I tried this for all the functions,
but so far all I get are blank lines for the three link sets at the bottom
of the pages.
> Must I absolutely use dba in php4, and therefore loose the new functions?
No, just compile PHP to support the old dbm library.
> Am I risking anythink by forcing 'dbm' ?
Again, no. Both dbmlib.php and dbalib.php use the same set of DBM files.
You can stay with dbmlib.php.
>
> What is the recommended way to migrate the database - If I just keep the
> dbm files, I dont see the recent changes to things like ReleaseNotes - I
> could just cut and paste from a pristine 1.2 but this seems crude - Is
> there a better way?
Err. Well, that's one problem we've never really solved. The default pages
don't change a whole lot, so not having ReleaseNotes is not a problem. I
think the user's pages count for more than what we provide by default.
> And is there still an admin functions index.php somewhere? - I cannot
> find it.
Did you try http://yourhost.yourdomain/phpwiki/admin.php ?
~swain
...............................ooo0000ooo.................................
Hear FM quality freeform radio through the Internet: http://wcsb.org/
home page: www.wcsb.org/~swain
|