linux - How to write a PHP extension to work with the console program? -
there console program morphological analysis of text https://tech.yandex.ru/mystem/.
work program console simple:
./mystem -lwd in.txt out.txt
i need carry out morphological analysis of text means of php, use exec () function impossible. easiest way, using php write text file, using bash script , cron analyze , save file.
but more convenient option php function mystem (string, param).
compile , install extensions can, not know how write them. think problem simple, because maybe faced decision of problem "fish"?
total question is, have ready solution can change name of console program , expansion ready? thank u!
Comments
Post a Comment