Im trying to write a movie archive scripty thing in php.
i have got it pulling lots of details from imdb when given a film title, however getting the poster images is proving fiddly.
I'd just go with some string manipulation on the outputted string narf, shouldn't be too much effort to get php to find the src=" in the string and return it to either overwrite the var or assign to a new one. The explode function might come in useful.
I've not done php since last year, and even then I was mostly doing DB calls and some basic formatting.
Last edited by buzzmong on November 8th, 2008, 23:31, edited 1 time in total.
You can just Regex the source out of it can't you? It starts with 'http://ia.media-imdb.com/images/' and ends with '.jpg' so extracting the url should be easy enough with preg_match.