Login   Register  
PHP Classes
elePHPant
Icontem

File: README

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Helmut Daschnigrum  >  Wiki Parser  >  README  >  Download  
File: README
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Wiki Parser
Retrieve and process articles from Wikipedia
Author: By
Last change:
Date: 8 years ago
Size: 1,244 bytes
 

Contents

Class file image Download
WikiRetriever
Version 1.0
Copyright 2005, Steve Blinch
http://code.blitzaffe.com

This class fetches one or more documents from Wikipedia (or any other MediaWiki wiki),
translates them into HTML, and returns them.


EXAMPLE

//
// Simple WikiRetriever usage example
//
require_once('class_WikiRetriever.php');

$url = "http://www.yourwikisite.com";
$titles = array("First_article","Second_article");
$wiki = &new WikiRetriever();
if (!$wiki->retrieve($url,$titles)) {
die("Error: $wiki->error");
} else {
var_dump($wiki->pages);
}


LICENSE

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA