PhpWiki to Mediawiki converter in php or perl?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


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:

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

- MediaWiki (Wikipedia is Mediawiki based) with user authentification
- 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 semiautomatically 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


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.

Site Timeline