Código PHP:
<?php
function leer()
{
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_URL,$url);
$buffer = curl_exec ($ch);
curl_close ($ch);
return $buffer;
}
$pagina="http://www.forosdelweb.com";
$html=leer($pagina);
echo htmlentities($html);
?>