Log In Register
c
Converting Wikipedia article to plaintext in PHP using free API:

<?php
$page = 'tiger';
$data = json_decode(file_get_contents('http://api.rest7.com/v1/wikipedia_page.php?page=' . $page . '&language=en&plain=1'));

if (@$data->success !== 1)
{
    die('Failed');
}
echo 'Page title=' . $data->title . '<br>';
echo 'Page text=' . $data->text . '<br>';
echo 'Image=' . $data->image_url . '<br>';
echo 'Imag width=' . $data->image_width . '<br>';
echo 'Imag height=' . $data->imageheight . '<br>';