<?php
include('simple_html_dom.php');
$htmls = file_get_html('src.html');
preg_match( "/file:'(.+?)'/", $html, $matches );
echo $matches[1];
?>
我正在使用 simple_html_dom.php 从脚本中获取 IMAGE,但它不起作用。在其他代码中它正在工作。
<script type='text/javascript'>
var timer = 10;
var countdown;
var jwplplayerSetup = jwplayer('jw').setup({
'modes': [
{type: 'flash', src: 'http://www.myvideo.ge/flv_player/j/playerNew.swf'}
],
'file': 'http://80.241.248.25/flv/216/2153964.mp4',
'image': 'http://thumbs2.myvideo.ge/screens/216/2153964.jpg',
'backcolor': '111111',
'frontcolor': 'cccccc',
'lightcolor': 'D10000',
'autostart': 'true',
'margin':0,
}
},
});
});
</script>