<?php $url = "YOU_TUBE_URL"; //Ex Youtube link: https://www.youtube.com/watch?v=vL-c_RtYkBE $queryString = parse_url($url, PHP_URL_QUERY); parse_str($queryString, $params); $v = $params['v']; if(strlen($v)>0){ echo "<img src='http://i3.ytimg.com/vi/$v/default.jpg' />"; echo "<img src='http://i3.ytimg.com/vi/$v/hqdefault.jpg' />"; echo "<img src='http://i3.ytimg.com/vi/$v/mqdefault.jpg' />"; echo "<img src='http://i3.ytimg.com/vi/$v/maxresdefault.jpg' />"; } ?>
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
Showing posts with label youtube link. Show all posts
Showing posts with label youtube link. Show all posts
Thursday, 7 August 2014
Get thump image from youtube link
Subscribe to:
Posts (Atom)