
I am trying to basically echo the entire contents of a div located on an external file. The div contains text, images and links.
My existing method currently displays nothing when I execute the script. Why? Inspect element in google chrome also displays literally nothing!
<?php
$file = "http://myworld.ebay.co.uk/digitalzoneonline";
$data = file_get_contents($file);
preg_match_all ("/<div id=\"Content\">([^`]*?)<\/div>/", $data, $listings);
$content = $listings[1];
$total = count($content);
for($i=0; $i<$total; $i++){
echo $content[$i]."";
}
?>
Please please help.


