Answer by shivaP for Get the Youtube Video Thumbnail from Youtube video Url...
Getting the video ID from the URL$url = "http://www.youtube.com/watch?v=oHg5SJYRHA0&feature=relate";parse_str( parse_url( $url, PHP_URL_QUERY ) );echo $vidID;//this is video idGetting the...
View ArticleAnswer by Jerry Jones for Get the Youtube Video Thumbnail from Youtube video...
<?php function getYoutubeImage($e){ //GET THE URL $url = $e; $queryString = parse_url($url, PHP_URL_QUERY); parse_str($queryString, $params); $v = $params['v']; //DISPLAY THE IMAGE...
View ArticleAnswer by Pascal MARTIN for Get the Youtube Video Thumbnail from Youtube...
To extract the identifier from the following URL :$url = 'www.youtube.com/watch?v=B4CRkpBGQzU&feature=youtube_gdata&par1=1&par2=2';You can first use parse_url() to get the query string...
View ArticleAnswer by genesis for Get the Youtube Video Thumbnail from Youtube video Url...
$url = "http://youtube.com/watch?v=B4CRkpBGQzU";$url = explode("&", $url);$vidID = preg_match("|?v=(.*)|", $url);$thumb_default =...
View ArticleAnswer by Mike for Get the Youtube Video Thumbnail from Youtube video Url...
Assuming youtube doesn't change their format:$thumb = preg_match('/watch\?v=(.*)&feature/',$url, $matches);This will get you the 'B4CRkpBGQzU' part in $matches[1];
View ArticleGet the Youtube Video Thumbnail from Youtube video Url using PHP
Lets say I have a youtube video url www.youtube.com/watch?v=B4CRkpBGQzU&feature=youtube_gdata&par1=1&par2=2I want to get the video thumbnail -> i3.ytimg.com/vi/B4CRkpBGQzU/default.jpgI...
View Article
More Pages to Explore .....