{source} array('header' => "User-Agent:MyAgent/1.0\r\n")); $context = stream_context_create($opts); $html=file_get_contents('http://dblp.uni-trier.de/pers/hd/g/G=uuml=neysu:Tim',false,$context); $dom = new DOMDocument(); $dom->loadHTML($html); $segment = $dom->getElementByID("publ-section"); foreach($segment as $a) { echo $a; } ?> {/source}