PhpWiki to Mediawiki converter in php or perl?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • news reader

    PhpWiki to Mediawiki converter in php or perl?

    Hi,


    I'm looknig for advice / inspiration / modules / libraries, that could help.
    I'm a little more fluent in perl, but a php solution would also be fine.



    I'm having two Wiki servers:

    Server1:
    - phpwiki with user authentication
    - direct access to the mysql data base possible
    - contains about 400 entries


    Server1:
    - MediaWiki (Wikipedia is Mediawiki based) with user authentificatio n
    - direct access to the mysql data base possible
    - contains about 30 entries


    I'd like to copy over about 350 entries from Server1 to Server2(I could
    apply a filter rule or semiautomatical ly create a list with entries to copy

    As the amount of entries is low I don't really need an optimized solution.

    Entries in server 2 can be overwritten.



    I wanted to have your advice:
    1.) Is there already something similiar, that exists?
    2.) Is there a Wikiadmin focused news group (I don't like mailing lists
    and web based forums, as you have to create a noew account for most of
    them or to increase your spam rate even more) ?

    If not:
    I know very little about the wiki internals and was thinking about a
    'brute force' method, not knowing if something better exists:

    The idea:
    1.) get all the entries from the phpWiki via mysql ( from table "wiki" )
    2.) fix naming style (my phpwiki entries contain spaces)
    3.) replace the phpWiki syntax with Mediawiki syntax (I found url with
    some sed rules, which are probably incomplete, but could be a goiod
    starting point) and fix naming styles of interlnal links.
    4.) access the Mediawiki via http, authenticate and post the new entries


    My idea was to 'post' new entries though it is probaly slower than
    directly populating the mysql data base as this allows to populate
    Mediawiki without having to know how the internal mysql book keeping
    works exactly.

    thanks in advance for any ideas and bye


    N


    P.S. I posted to comp.lang.php and comp.lang.perl. misc but thought, that
    cross posting may not be a good idea as probaly most follow ups will be
    very language specific.





Working...