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   ·   实用小工具   ·   836 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 20:33 · PVG 04:33 · LAX 13:33 · JFK 16:33
Developed with CodeLauncher
♥ Do have faith in what you're doing.