http://german.imdb.com/title/tt0101410/ mit Regisseur
http://german.imdb.com/title/tt0036154/ mit Directors
Der Code sieht nun folgendermaßen aus:
Code: Alles auswählen
// Regisseure
$search = '<img src="http://i.imdb.com/images/tn15/header_overview.gif" width="220" height="20" alt="Overview">\n';
$search = '<br/>\n';
$search = '<div class="info">';
$this->buf1 = explode( $search, $this->siteBuf );
$this->buf2 = explode( '</div>', $this->buf1[1] );
$search = '/">';
$this->buf1 = explode( $search, $this->buf2[0] );
$this->varToImport['regisseure'] = array();
for ( $i=1; $i<count($this->buf1); ++$i ) {
$this->buf2 = explode( '</a>', $this->buf1[$i] );
$this->varToImport['regisseure'][$i-1] = htmlentities( urldecode($this->buf2[0]) );
}