Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Randy Gerritse  >  IMDBSearch  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: takes a parameter (q) that can contain an imdb id or a movie title, displays a formatted print_r of the array containing the found results, used as an example of what IMDBSearch returns (for developers)
Class: IMDBSearch
Search the Internet Movie DataBase
Author: By
Last change:
Date: 2003-07-30 10:26
Size: 447 bytes
 

Contents

Class file image Download
<?
/*    Example output of the IMDBSearch class
    takes parameter q: either an imdb id or a movie title
    Don't modify without written authorization
    Created by: Randy Gerritse
    Email: randy@randy.nu
    ©2003, All rights reserved.
    ================================================================================ */

include("classes/IMDBSearch.php");

$imdb = new IMDBSearch($_REQUEST["q"]);

echo 
"<pre>";
print_r($imdb->imdb_result);
echo 
"</pre>";
?>