phpMyDict – Stardict web backend with PHP

Stardict is a popular open source dictionary program as well as file format for storing dictionaries. There are alternatives of StarDict, some of them better, some worse. But I never meet some WEB application to use dictionaries in StarDict format and interface through the web browser. I found this little interesting and created one…

It is written in PHP and uses MySQL as database backend, client part uses jQuery for AJAX queries. Dictionaries are indexed in admin part for quick access. By now searches through 2 mil words takes about half of the second. Interface is as simple as possible and was inspired by GoldenDict. For sample usage it contains Russian-English and English-Russian dictionary(Universal, Computer, Oil, Gas…)

Post navigation

14 comments

I am looking for a way to create a collaborative dictionary that also allows for easy download of the online database for people to use offline. Using the Stardict format online would make the conversion way easy. Do you think it would be very hard to make it so people could submit new words and corrections that would then go to an admin to approve or delete?

This script seems really fast and has a lot of potential – thanks!
-Nathan

Thanks )
Depends on number of words. In case of less then 10-20K it is easier to store all words in database and write export to stardict format function. This format is really easy to handle. May be I will release PHP class to deal with it.

Mine case is to support millions of words, it is a little bit different situation with read only dictionary access. Storing words directly into StarDict requires recreating index file each time when adding/deleting – not efficient.

thx for your tutorial!!! I lereand alot! has the series of PHP Forum tutorial finished? or few more lessons? I watched all the tutorial in your websites!Thanks for your sharing and time!!! WE really appreciate it!