'.$imdbGet->id; echo '
'.$imdbGet->name; echo '
'.$imdbGet->year; echo '
'.$imdbGet->directed_by; echo '
'.$imdbGet->writing_credits; echo '
'.$imdbGet->genre; echo '
'.$imdbGet->rating; echo '
'.$imdbGet->runtime; echo '
'.$imdbGet->comment; echo '
'; echo '
';
//
// IMDb cast:
//
// every position in the array
// contains an array with:
// 1. ['name_id'] -> the id of the "vip"
// from the imdb site; you can use it
// like http://www.imdb.com/name/nm.['name_id']./
// 2. ['name'] -> name of the "vip"
// 3. ['character'] -> name of the character
// from the movie/show
//
$imdbCast = $imdbGet->getCast();
print_r($imdbCast);
//
echo '
'; echo '
'; //show the poster image: $imdbGet->displayPoster(); // // IMDb poster image: // $imdbImage = $imdbGet->poster_image; // $imageData = $imdbImage[0]; $imageExtension = $imdbImage[1]; // // THE IMAGE from imdb comes as an array: // [0] contains the binary data; // [1] contains the image extension; // // ... and it's intended for storing into database. // // for retrieving the image from database, please // refer to this link: // http://www.google.com/search?q=mysql+image+storing ;) // (it's fairly easy to do it) // // // and that's it ! // enjoy! // ?>