download dict ->http://en-gb.pyxidium.co.uk/dictionary/en-GB-wlist.zip
make php index.php with code, put the en-GB-wlist.txt in the same folder as the index.php and hit the page :
if ($fb = fopen($path, "rb")) {
$contents = fread($fb, filesize("en-GB-wlist.txt"));
}
fclose($fb);
$word = explode( "\n", $contents );
foreach( $word as $v ) {
if ( !empty( $v ) ) {
$v = str_replace( "'", "",$v);
$v = str_replace( " ", "",$v);
mysql_query("INSERT INTO ".$xttables['dictionary']." VALUES ( '', '$v')");
}
}
make php index.php with code, put the en-GB-wlist.txt in the same folder as the index.php and hit the page :
if ($fb = fopen($path, "rb")) {
$contents = fread($fb, filesize("en-GB-wlist.txt"));
}
fclose($fb);
$word = explode( "\n", $contents );
foreach( $word as $v ) {
if ( !empty( $v ) ) {
$v = str_replace( "'", "",$v);
$v = str_replace( " ", "",$v);
mysql_query("INSERT INTO ".$xttables['dictionary']." VALUES ( '', '$v')");
}
}
1889 Hits