PHP Classes

File: IMDB.Photos.php

Recommend this page to a friend!
  Classes of Stanga Razvan   IMDBPhotos   IMDB.Photos.php   Download  
File: IMDB.Photos.php
Role: Example script
Content type: text/plain
Description: IMDB Photos Example
Class: IMDBPhotos
Download the movie poster and images from IMDB
Author: By
Last change:
Date: 20 years ago
Size: 1,049 bytes
 

Contents

Class file image Download
<?

//=============================//
// //
// IMDBPhotos v0.1 //
// IMDBPhotos Example //
// IMDB.Photos.php //
// by Stanga Razvan //
// razvan_stanga@yahoo.com //
// http://venom.gent00.org //
// //
// MADE IN ROMANIA //
// //
//=============================//

set_time_limit (0);

require (
"IMDB.Photos.Class.php");

$IMDB = new IMDBPhotos ();
$IMDBData = $IMDB->IMDBParser ('0147800'); // 10 Things I Hate About You

//$IMDB = new IMDBPhotos ();
//$IMDBData = $IMDB->IMDBParser ('0322259'); // 2 Fast 2 Furious (lots of photos)

// Outputs :
// $IMDBData[photos_total] - number of downloaded photos
// $IMDBData[photos_urls] - images URL's as an array
// The photos are written in the $photosPath/imdbID
// format : imdbID-number.fileextension (photo)
// imdbID-number-tn.fileextension (photo thumbnail)
// number : 1 - number of downloaded photos

?>