<?
include "rodaspell.php";
include "timer.php";
$spell = new RodaSpell;
$t = new Timer;
$spell->mysql = true;
$spell->m_user = "root";
$spell->m_pass = "";
$spell->db = "saddor"; /* Database */
$spell->install() /* install */;
$spell->word_add("cesar");
$spell->word_add("zezar");
$spell->word_add("google");
$spell->word_add("microsoft");
$spell->word_add("php");
$t->start();
print_r($spell->correct("sesar trata de comprar mcrosoft"));
print "<br>Correction with MySQL: ".$t->get_time()." seconds <hr>";
?>
|