Hi
The above should work fine. But I am posting you a part of the code. Just read it carefully and you can create a program that you were talking about.
Code:
$url = 'http://www.google.com/';
$conts = strtolower(strip_tags(file_get_conts($url)));
$conts = preg_replace('%[^\w\s\r\n]%', ' ', $conts);
$wds = preg_split('%[\s\r\n]+%', $conts);
$wdcnt = array_count_values($wds);
asort($wdcnt);
echo '<pre>'.print_r($wdcnt, true).'</pre>';
If you have any more queries then feel free to post back again. Enjoy programming.
Bookmarks