|
From: Steve W. <sw...@wc...> - 2000-06-20 23:25:26
|
On Wed, 21 Jun 2000, Arno Hollosi wrote: > > * in a DBM-based Wiki, call dump.php3. > > can be in a mysql or pgsql wiki as well - I don't see any problems Yes, this was just an example. It would port any database to any database. I think in the long run it would be used the most for DBM -> RDBMS though (as people upgrade their installations); DBM files are a great way to start off, and for small Wikis they are sufficient, but as traffic rises you really want the stability and efficiency of a SQL database. > How about having the page source in files like /pgsrc and one additional file > that contains serialized data structures (in the 1.1.6 format)? That would be even simpler... I'll only have to write one dump.php3 file :-) > On a side note: the file names have to be escaped in some way. > The new naming scheme allows arbitrary characters and some > filesystems don't allow that. Know of any good escaping scheme, > short of naming the files 1,2,3,4,5,6, .... Would rawurlencode() work? > (I thought of something like using a special character, say ',' > and escape any odd characters with their decimal value, e.g. > the name "you \\don't// hear, do you?" would be saved as > "you ,92,,92,don,39,t,47,,47, hear,44, do you,63," > I guess you can see why this might not be a good solution) There's probably no clean solution to this. Anyways people should StickWithTheNamingConvention :-) sw ...............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |