|
From: Steve W. <sw...@pa...> - 2001-07-06 14:42:19
|
I once tried to load the contents of the Jargon File into PhpWiki via a Perl script, and had some success. (The JF is at http://www.tuxedo.org/~esr/jargon/. You can get it as one big text file, which is what I used). I wrote a Perl script to do this, but it can be done in PHP without much trouble. We don't have an "import" facility per se because there's never been a demand for it, and there's an infinite number of input formats to deal with ;-) My approach would be to write a Perl script that read in each separate entry from the file (by resetting $/) and then generating the SQL to insert that entry. When the SQL looks good, I would try loading the files into a virgin Wiki before loading it into the real thing. ~swain On Fri, 6 Jul 2001, Malcolm Ryan wrote: > I have a large collection of data in a text file that I would like to add > to my PhpWiki. The file consists of several hundred entries, each of which > should go into a separate page. Is there any easy way to write a > script to add pages in bulk, rather than doing it manually? > > Malcolm > > -- > Malcolm Ryan - mal...@cs... - http://www.cse.unsw.edu.au/~malcolmr/ > AI Dept, CSE, UNSW, Australia, Phone: +61 2 9385-6906 Fax: +61 2 9385-4936 > > "He causes his sun to rise on the evil and the good, > and sends rain on the righteous and the unrighteous." - Matt 5:45 > > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phpwiki-talk > --- http://www.panix.com/~swain/ "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." -- Frank Zappa |