将swf从其他网站显示为div

I’m trying to display a swf from another site into mine.

I’ve got permission from the other side to do so I’m just having problems figuring it all out.

I’d like to display just the swf not the entire page that swf is on.

I’ve tried this – but it only seems to work with content and I haven’t had any luck getting the swf to appear.

<?php $conts = file_get_contents('http://www.test.com/');
$pattern = '~<div.*id="content".*>(.*)</div>~iUs';
preg_match($pattern, $conts, $matches);
array_shift($matches);
echo $matches[0]; ?>

How can a go about doing this. Thanks!

查看全部
duanchui1251
duanchui1251
2010/05/03 15:58
  • load
  • php
  • html
  • flash
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复