Hello! There is a console program Mystem, I try to run it on a Linux server and process the data, but the feeling that the program itself does not start, how to make sure that it starts? Sample code below:
$text = "Любимый мой хитер темпераментный кидать книги"; function mystem($q) { $result = exec ('echo "'.$q.'" | /mystem/mystem_3_linux_3 -w '); // $result = preg_replace ("/[\?\}\{]/"," ",$result); return $result; } $texts = explode(" ", $text); foreach ($texts as $answer => $keys) { echo $answer ."=". mystem($keys); echo "<br/>"; } I’ll add a Linux server to me, I’d like to determine if the program starts exactly and why it doesn’t give any data.