I need PHP codes to count Chinese(both simplified and traditional), Korean, and Japanese words with .txt, .doc, .rtf, .html formats.
It will be an online function, says when a file is uploaded, then serveral seconds later the codes could return a result of the number of the total words in the uploaded file. The accurate should be close to the result getting from word counting function in MS Word.