Location: PHPKode > scripts > IMDB Grabber > imdb-grabber/imdb.example.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IMDb Grabber Example</title>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<?php
/*
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-=		IMDb Grabber	    -=
-=	File: imdb.example.php      -=
-=	Created by CarcaBot	    -=
-=	hide@address.com	    -=
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/
require_once("imdb.class.php");

$link = "http://www.imdb.com/title/tt0377713/";

$imdb = new IMDbGrabber($link);
echo '<br/>'.$imdb->id;
echo '<br/>'.$imdb->score;
echo '<br/>'.$imdb->director;
echo '<br/>'.$imdb->released;
echo '<br/>'.$imdb->writers;
echo '<br/>'.$imdb->genre;
echo '<br/>'.$imdb->tagline;
echo '<br/>'.$imdb->plot;
echo '<br/>'.$imdb->awards;
echo '<br/>'.$imdb->aka;
echo '<br/>'.$imdb->runtime;
echo '<br/>'.$imdb->country;
echo '<br/>'.$imdb->language;
echo '<br/>'.$imdb->aspect;
echo '<br/>'.$imdb->soundmix;
echo '<br/>'.$imdb->usercomments;
echo '<br/>'.$imdb->displayposter();
/*
** IMDb Trailer:
*/
echo '<br/>'.$imdb->trailer();

/*
** NFO File:
** This option will create a nfo file which contain all details about movie
** If you want to activate this just uncomment following file.
** File created is id-of-movie.nfo
*/
$id = $imdb->id;
echo '<br/>'.$imdb->nfo($id.".nfo");


/*
** IMDb cast:
**
** contains an array with:
** 1. ['character'] -> character name
** from the movie/show
*/


echo '<hr/>';
echo '<pre>';
$imdbcast = $imdb->showcast();
print_r($imdbcast);
echo '</pre>';

?>
</body>
</html>
Return current item: IMDB Grabber