Getting Vimeo thumbnail images using php is unbelievably slow -


i'm using php code thumbnail images of vimeo videos.

while($row = $database->fetch_array($result)) { $url = $row["link"]; sscanf(parse_url($url, php_url_path), '/%d', $video_id); $hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$video_id.php")); $image = $hash[0]['thumbnail_small'];   echo "<img class='vimeo_video' video='$video_id' src=$image>"; } 

it fetches images, takes @ least 30 seconds load page. vimeo's servers or code?


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -