PHP Classes


Recommend this page to a friend!
  Classes of Dantigny francois   PHP IMDB search   Download  
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP IMDB search
Search movies and retrieve information from IMDB
Author: By
Last change:
Date: 8 years ago
Size: 1,346 bytes


Class file image Download


find on IMDB.COM some titles like an input title


1 - a title ($_GET['t']),

2 - a country ($_GET['c']) : in order to filter all the titles of the 'movies' ('all' for no filter),

3 - a MoviesTypes ($_GET['g'] & see langages.php : $Types) : to filter only on some 'MoviesTypes'

OUTPUT : '0' if no title match the entry on, else an array:


	imdb_id   : something like tt0456201 <- Id IMDB of the movie
	title     : principal title (depend on country),
	year      : IMDB year of the movie,
	genres    : (string) IMDB genre(s),   [ATTENTION : in french but could be changed]
	directors : (string) IMDB director(s),
	poster    : (string / URL) the biggest IMAGE if exists,
	AKAs      : (string) IMDB also_known_as (depend too on INPUT country),
	video     : (string / URL) IMDB trailer if exists,
	type      : IMDB MoviesTypes,   [ATTENTION : in french but could be changed]
	pere      : IMDB_id for the serie if type=episode,


adapted from

TO DO : Try to deceive to persuade him whom we are in France / Italy / else !

ATTENTION : strings - in the output - are filtered on "commas" because trouble with Javascript JSON.parse see