在脚本标签中获取URL html5player.setvideourlhigh
我正在尝试在脚本中的标签中获取url
html5player.setVideErlhigh('http://www.example.com/videourl_here.mp4')
当前使用此>脚本但不起作用:
$url = 'http://www.siteurl.com/embedframe38295/';
$content= file_get_contents($url);
preg_match_all('#html5player.setVideoUrlHigh\(\'.*'/')', $url, $matches, PREG_OFFSET_CAPTURE);
$videoURL = ($matches[0][0]);
echo $videoURL;
有什么问题?
I'm trying to get the url
inside a tag within script html5player.setVideoUrlHigh('http://www.example.com/videourl_here.mp4')
Currently using this script but is not working:
$url = 'http://www.siteurl.com/embedframe38295/';
$content= file_get_contents($url);
preg_match_all('#html5player.setVideoUrlHigh\(\'.*'/')', $url, $matches, PREG_OFFSET_CAPTURE);
$videoURL = ($matches[0][0]);
echo $videoURL;
What can be the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论