李琴 wrote: > Hi, > I have already got the article data from the wikipedia and I stored it > on my computer .Now I want to add the article to the local wiki. I have > done a lot of reaserches and I know that there are a lot of things to do. > If add a record to the page table ,then the > revision,recentchange,text,pagelink table and so on will be changed.So I > think maybe there is a easy way to do that . > > Can you tell me what should I do ? Should I simply use > 'insert,update,select...'words? > > Sincerely looking froward you help, thanks > > vanessa lee
If you're working inside mediawiki php. $wgTitle = Title::newFromText( "MyArticle" ); $wgArticle = new Article( $wgTitle ); $wgArticle->insertNewArticle( "Some text", '', false, false ); If you don't want to work with php, use maintenance/importTextFile.php _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
