Código:
<?php // Download the target file $target = "xxxx.com"; $downloaded_page_array = file($target); // Echo contents of file $pattern = "/<div id=\"ip_type_(.*?)<\/div>/"; $page = implode(" ",$downloaded_page_array); preg_match_all($pattern,$page,$res); for($x=0;$x<$res;$x++){ echo $res[$x]; } ?>