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!