PHP Classes

File: sqlite.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas   RodaSpell   sqlite.php   Download  
File: sqlite.php
Role: Example script
Content type: text/plain
Description: SQLite Example
Class: RodaSpell
Correct text spelling using a SQL database
Author: By
Last change:
Date: 18 years ago
Size: 468 bytes
 

Contents

Class file image Download
<?
include "rodaspell.php";
include
"timer.php";

$spell = new RodaSpell;
$t = new Timer;
$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 SQLite: ".$t->get_time()." seconds <hr>";

?>