Q
Q
qpPeW2018-02-11 15:19:52
linux
qpPeW, 2018-02-11 15:19:52

How to run a script through PHP?

There is a script, at the moment it is run via SSH.
./butteros -H 0 -P 1 -a 0
Tried through shell_exec and exec with no success.
Actually the question is how to run this file with the attribute passing through PHP?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2018-02-11
@qpPeW

specify the full path to the script.
turn on error output.
"Failed" is nothing.

A
alfss, 2018-02-11
@alfss

php.net/manual/ru/function.shell-exec.php - everything is already written there in the comments.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question