From: Steve W. <sw...@wc...> - 2001-02-02 20:57:46
|
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 |
From: Barnett, P. G <Pau...@Br...> - 2001-02-06 11:51:20
|
Hi Steve - thanks for the reply. >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. > It seems that the guy who installed php4 on our server noticed that phpwiki needed the --with-db option and did it for me. I also got the blank lines, but they started to get filled-in once we began to update the pages in 1.2 >> And is there still an admin functions index.php somewhere? - I cannot >> find it. > >Did you try http://yourhost.yourdomain/phpwiki/admin.php ? This gives me acces to lock, unlock and remove, but what is the new way to run "Dump serialized copies of pages", "Dump the pages as HTML","Load serialized pages from files", "Rebuild the dbm files so they are smaller" etc ? ------------------------------------------------------------------------------------------------- 21st century air travel http://www.britishairways.com |
From: Arno H. <aho...@xm...> - 2001-02-06 12:14:38
|
> This gives me acces to lock, unlock and remove, but > what is the new way to run "Dump serialized copies of pages", > "Dump the pages as HTML","Load serialized pages from files", > "Rebuild the dbm files so they are smaller" etc ? There's a page in pgsrc/ called PhpWikiAdministration Just put that into your wiki and view it through admin.php. Shrinking DBM files has not been done in that interface yet. Send us a patch :o) /Arno |
From: Steve W. <sw...@wc...> - 2001-02-06 15:33:49
|
On 6 Feb 2001, Barnett, Paul G wrote: > >Did you try http://yourhost.yourdomain/phpwiki/admin.php ? > > > This gives me acces to lock, unlock and remove, but > what is the new way to run "Dump serialized copies of pages", > "Dump the pages as HTML","Load serialized pages from files", > "Rebuild the dbm files so they are smaller" etc ? And dump zip copies... Arno pulled the admin stuff out a while back and moved it into the Wiki itself; in turn, * "dump serialized copies" was apparently replaced with dump as zip files. I recall Jeff feeling very paranoid about letting people write to the file system, and it would be safer to let them get a zip file from the browser. * "dump as HTML" was never implemented, my fault. * "Load from files" was redone to load from zip files, as noted above. * "Rebuild the DBM" was replaced with a Perl script, included in the distribution. ~swain ...............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |