<?php

$HL 
"e";

$file file_get_contents("http://www.google.com/");

$file "<base href='http://www.google.com/' />\n" $file;

if (
preg_match("#^(.*)<body[^>]*>(.*)</body>#is"$file$matchBody)) {
    
$matches preg_replace("/<[^<>]+>/""|"$matchBody[2]);

    if (
preg_match_all("/[^|]+/"$matches$words)) {
        foreach (
$words[0] as $word) {
            if (
false !== stripos($word$HL)) {
                
$replace str_replace(
                    
$HL
                    
"<span style='color:yellow'>$HL</span>"
                    
$word
                
);
                
$file str_replace($word$replace$file);
            }
        }
    }

    
$file $matchBody[1].$file;
}

print 
$file;

?>