search trough CCDICT

Comments, bug reports, discussions on CCDICT.
seba

search trough CCDICT

Postby seba » Wed Aug 06, 2003 5:55 am

Hello all,

I was wondering what the fastest way is to search in the CCDICT-file.
In PHP I now use a "less xx | grep xx" performed by bash. But how would one do it in PHP ? it might come in handy for cedict and the unicode unihan database who are also all large flat text files

thanks

Thomas Chin

Re: search trough CCDICT

Postby Thomas Chin » Sun Aug 10, 2003 10:35 am

I don't have any experience with searching through text files. You might however import them in a database. PHP has great database support.

Regards

seba

Re: search trough CCDICT

Postby seba » Sun Aug 10, 2003 5:26 pm

i want to use flat-text files that makes it easer for people who don't have database-access to use my code. But since CCDICT is a 6MB text file, it's kind of heavy to load it in an array ...


Return to “CCDICT”

Who is online

Users browsing this forum: Google [Bot] and 2 guests