Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

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  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Wiki Parser
Retrieve and process articles from Wikipedia
Author: By
Last change:
Date: 8 years ago
Size: 318 bytes
 

Contents

Class file image Download
<?php

//
// 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);
}


?>