DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:tikiwiki2dokuwiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:tikiwiki2dokuwiki [2014-02-25 22:04] 50.78.32.25tips:tikiwiki2dokuwiki [2023-03-02 12:03] (current) Aleksandr
Line 11: Line 11:
 Aditional notes: Aditional notes:
  
-You need to run it from php. (~$php ./Tiki2Dokuwiki) +You need to run it from php. (~$php ./Tiki2Dokuwiki)\\ You need to copy /var/www/dokuwiki/inc/utf8.php to the directory you are running the script from.\\ You need to have created a "pages" directory in the directory you are running the script from.\\ You need to add the root mysql password.\\ You may need to change the mysql database from tikiwiki to whatever. Log in to mysql and execute "show databases;" to see what it may be called. 
- +
-You need to copy /var/www/dokuwiki/inc/utf8.php to the directory you are running the script from. +
- +
-You need to have created a "pages" directory in the directory you are running the script from. +
- +
-You need to add the root mysql password. +
- +
-You may need to change the mysql database from tikiwiki to whatever. Log in to mysql and execute "show databases;" to see what it may be called. +
  
 <file> <file>
 <?php <?php
- // You must copy utf8.php from Dokuwki in the same directory+ // You must copy utf8.php from DokuWiki in the same directory
  // and create a pages directory.  // and create a pages directory.
  
Line 148: Line 140:
 mysql_close($link);  mysql_close($link); 
 </file> </file>
 +
 +==== Discussion ====
 +
 +This php script does the job good, but only does 50% of the job. I have 67 wiki page but it only output (to ''%%<present-working-directory>%%/pages'' ) 60 pages. And the main issue is character outside of ASCII don't convert (I have ''/var/www/dokuwiki/inc/utf8.php'' include in %%<present-working-directory>%%), and some other syntax don't convert especially html tag ( ''%%{DIV(class="someclass")}some content{DIV}%%'' ).\\
 +But this script is a good starting point I think, it probably work well after some trim. Thanks for sharing :-) --- [[user>treegb]] 2016-10-07.
tips/tikiwiki2dokuwiki.1393362279.txt.gz · Last modified: 2014-02-25 22:04 by 50.78.32.25

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki