Zählen Wörter auf einer html-Seite mit php

Ich brauche ein PHP-Skript, das eine URL einer web-Seite und dann Echos, wie oft ein Wort genannt wird.

Beispiel

Dies ist eine generische HTML-Seite:

<html>
<body>
<h1> This is the title </h1>
<p> some description text here, <b>this</b> is a word. </p>
</body>
</html>

Dies wird das PHP-Skript:

<?php
htmlurl="generichtml.com";
the script here
echo(result);
?>

Also die Ausgabe wird eine Tabelle wie diese:

WORDS       Mentions
This        2
is          2
the         1
title       1
some        1
description 1
text        1
a           1
word        1

Dies ist so etwas wie die Suche bots tun, wenn Sie im web surfen, so, keine Ahnung, wie zu beginnen, oder noch besser, Sie haben ein PHP-script, das bereits tut?

InformationsquelleAutor DomingoSL | 2010-08-15

Schreibe einen Kommentar