Sure thing karsten, use this function, taken from php.net
// Parser function to parse document page into html string
function parseWebPage($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
$xml = curl_exec ($ch);
curl_close ($ch);
return $xml;
}
It will return all the html code for the specific page. After that, you can strip out the body part only with explode() function twice for easy to use, the first one to explode against opening body tag and keep the part for body, and the last one will be against the closing tag with hal body content without the header section.
For example:
$temp = explode('<body>', $xml);
$xml = $temp[1];
$temp = explode('</body', $xml);
$xml = $temp[0];
echo $xml;
One thing to note though, all the link is relative, so you need to use str_replace or preg_match to find all the relative link and append the absolute url to the link. Basically this will give you the idea on how to do it, but it will be hard to maintain a consistent look of the site without an iframe or frame.