<?php
$str=file_get_contents("index.html");
echo "<textarea cols=100 rows=20>$str</textarea>";
echo str_replace("\n","<br>",htmlentities($str));
?>
This was for a index.html in same folder as your php page.
As said, it will work.
For reading contents (source) of a remote page, at some other website:
<?php
// save this code as page: 'getsource.php' or something like that
// can of course be a local html in your own same folder, as in above example
// $linktopage = "myown.html";
// But here we read source of startpage at google: 'index.html'
$linktopage = "http://www.google.com/index.html";
$sourcecode = file_get_contents( $linktopage );
echo $sourcecode;
?>
It is not more difficult than this.
3 lines of php!
To see how they coded that HTML.
halojoy - dont you download source code from his pages, please!
.