IMDBPHP is a wonderful bit of PHP that delves deep into the world of IMDB.
As you may know, I am a big fan of Arrested Development, and really wanted to feature a quote script from bluthfamily.com but the resulting layout didn't really fit into the layout of my own blog.
I did write to the author/owner of bluthfamily.com, but as soon as I pressed send, I wondered if there was an IMDB API. It turns out there isn't, but IMDBPHP does exactly what I wanted.
With the quotes returned in an array, I was able to randomly select a quote and display it to screen. What's more, I spent a bit of time playing with the rand function and got it to randomly pick one of three programs (Arrested Development, the Office and The Smoking Room) and then select a random quote.
The documentation isn't great, but the movie details page gives you the best example of how to get going.
You can see the result of my work just below the list of external links in the sidebar.
Sorry for any bad language!
This post has the following tags: framework, IMDB, php
This post was filed under the following categories: Code, Films, Random
First posted: 13th Jul 2008 @ 03:22
This post has been updated on 2 occassion(s):
Last updated: 14th Dec 2009 @ 08:56
Further reading...
Here are some articles that you might find interesting.
- The beginning - 33% match
- Nike+PHP progress and branding - 33% match
- Nice little function in PHP - 33% match
- PHP includes and requires - 33% match
- Nike+PHP a PHP class for Nike+ - 33% match
The post New blog layout feature, featuring IMDBPHP by Charanjit Chana is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.0 UK: England & Wales License. Permissions beyond the scope of this license may be available by getting in contact with the author.













