googled this, look ok?
................
PHP Code:
<?php
$handle = fopen ("http://www.example.com/", "rb");
$contents = "";
do {
$data = fread($handle, 8192);
if (strlen($data) == 0) {
break;
}
$contents .= $data;
} while(true);
fclose ($handle);
?>
I haven't tested those but from what I saw, $content will be the exact source of the index file in example.com (parts that is shown to the world of course - not the serverside scripts)
so now we can look for some pattern in $content
.............