qualcosa del genere

Codice PHP:
echo htmlentities(file_get_contents("http://www.google.it")); 
file_get_contents ti restituisce una stringa col sorgente

poi usi htmlentities per visualizzarla correttamente nel browser

dipende da cosa ci devi fare