üstad ben birşey daha sorucam!!! resimlerde de gördüysen 1 tane resim var....
normalde kodlarına bakınca 3 tane resim göstermesi lazım ama nedense 1 tane çekiyor...
acaba bundaki sorun ne?
preg_match ( "'<div class=\"media_strip_thumbs\">(.*?)</div>'s" , $imdb_raw , $dro_photos );
$dro_photos = str_replace("/rg/photos","http://imdb.com/rg/photos",$dro_photos[1]);
preg_match_all ( "'<a href=\"(.*?)\">'s" , $dro_photos , $dro_photos );
$count_pic = 0;
foreach ($dro_photos[1] as $dro_photo) {
$count_pic++;
if ($count_pic <= 3) {
$imdb = @fopen($dro_photo, "r");
while (!feof($imdb))
$photo_raw .= fgets($imdb, 4096);
fclose($imdb);
$photo_raw=str_replace("\n","",$photo_raw);
preg_match ( "'<table id=\"principal\">(.*?)</table>'s" , $photo_raw , $dro_pict );
preg_match ( "'http://(.*?).jpg's" , $dro_pict[0] , $dro_pict );
$value = $dro_pict[0];
$dro_thumb = str_replace('_SY400','_SY100', $value);
list($width, $height, $type, $attr) = getimagesize($dro_thumb);
$dro_photos.="<a href=\"".IMDBTag_Get_Image($value,$imdb_id)."\" class=\"thickbox\" title=\"$title\" rel=\"$title\"><img src=\"".IMDBTag_Get_Image($dro_thumb,$imdb_id.'_th')."\" alt=\"".$title."\" /></a>";
$photo_raw="";
$dro_pict="";
}
}
$dro_photos= str_replace('Array','', $dro_photos);