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…)

Try to access it here http://a32.me/other/dict/

Comments are welcome. If I have more time and some interest to it, will release it open-source .There might be interest to use it in intranet environment.

Additional free dictionaries can be found here:

Did you find this post useful? Support the the author ($10)
My Google Profile+

14 comments

  1. 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

  2. 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.

  3. This is exactly what I was looking for! I already started wondering if nobody else came across this, but you apparently did 🙂

    I would be really interested in the php code to import the startdict data into mysql, and optionally export it again. Could you share that with us? Thnx!

  4. Hi,
    I’m trying to find a php code to make own word for word translation, without Google. Do you thing your app is usable?
    Thank you, Luke

  5. This is awesome! I’m currently building a eng to Chinese and Chinese to eng ajax page.

  6. I would also like how to fill in the database and connect with it?
    Can anybody out there please help?

  7. 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!

Leave a Reply

Your email address will not be published.