U
U
UserTwo2021-06-11 20:18:14
PHP
UserTwo, 2021-06-11 20:18:14

How to execute command in console (linux) and get response?

Tell me, is it possible using php to execute a command in the console and get a response? OS linux. The task is to execute a command in the fasttext neural network and get a vector of terms for the subsequent comparison of two strings (cosine similarity).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Yuriev, 2021-06-11
@UserTwo

  1. https://www.php.net/manual/ru/function.exec.php
  2. https://www.php.net/manual/ru/function.shell-exec.php
  3. https://www.php.net/manual/ru/function.pcntl-exec.php
  4. https://www.php.net/manual/en/language.operators.e...

choose

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question