wontao 最近的时间轴更新
wontao

wontao

V2EX 第 47227 号会员,加入于 2013-10-19 00:03:27 +08:00
wontao 最近回复了
2013-10-19 00:21:45 +08:00
回复了 jeequ 创建的主题 程序员 PHP 获取优酷视频缩略图,视频播放时长
function get_youku_thumb($url) {
$content = file_get_contents($url);
preg_match( '/id="s_msn2".*?screenshot=(.*?)".?target=/', $content, $matchs );
return $matchs[1];
}
echo get_youku_thumb('
');
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3763 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 04:55 · PVG 12:55 · LAX 21:55 · JFK 00:55
Developed with CodeLauncher
♥ Do have faith in what you're doing.