PHP - Exec function, shell_exec, and system do not work correctly

0

Running the example documentation on the site itself works.

Examples:

echo exec('whoami');

$output = shell_exec('ls -l');
echo "<pre>$output</pre>";

My code does not differ so much from the examples described in the documentation, what I want to do is just run another application with the following command:

My code / example:

> $comando = "python3 caminho/arquivo.py";
> exec($comando);

And now folks!?

    
asked by anonymous 19.09.2018 / 22:12

0 answers