Logged In: NO

Hi,

This response is a bit out of date, but I thought it might
be useful for you. The 'match one title' problem with IMDB
has been around in DVDDBP for a long time.

It occurs because IMDB sends a redirect Location: header
back. My suggestion is to use Snoopy.

An example get url function using Snoopy is:

function readurl($url)
{
include('Snoopy.class.inc');

$snoopy = new Snoopy;
if\($snoopy->fetch\($url\) && $snoopy->status == 200\)
    return $snoopy->results;
else
    return NULL;

}

The phpmovielib_functions.php function
phpmovielib_parse($id) could be modified thus: (The
commented out code is the original code)

$url = "http://us.imdb.com/Plot?".$id;
//$file = fopen($url, "r");
//$read = fread($file, 80000);
//fclose($file);
$read = readurl($url);

$url = "http://us.imdb.com/Title?".$id;
//$file = fopen($url, "r");
//$read2 = fread($file, 80000);
fclose($file);
$read2 = readurl($url);

Snoopy automatically follows Location: redirects, and so the
error where an exact match times out, will not be a problem
for you anymore.

Snoopy is a good library.

Cheers