"How to get the Google video's thumbnail image ? " in PHP or Javascript? -


I want to use thumbnail of Google Video in PHP or Javascript function

function getScreen , Size) {if (url === null) {return ""; }

size = (size === empty)? "Big size; var vid; var result;

result = url.match (" [\? Amp;] v = ([^ & amp; #] *) ");

vid = (result == = null)? Url: Results [1];

If (size == "small") {

return "" + vid + "/ 2.jpg";} Other {

Return "" + vid + "/ 0.jpg";}

}

You Tube Videos <

imgUrl_small = getScreen ("uVLQhRiEXZs", 'small');

Here's a small script that you might want to work with:

  & lt; ? Php $ content = file_get_contents ("http://video.google.de/?hl=de&tab=wv"); $ Reg Ex = '| & lt; img class = thumbnail-img. *? Src = (. *?) |'; Preg_match_all ($ regex, $ content, $ result, PREG_PATTERN_ORDER); $ picture = $ result [1]; foreign Currency ($ images $ image) {echo $ image;}? & Gt;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -