I would like to execute a linux program from php, how can I do that ?
In linux terminal, I usually do :
./program_name -o argument1 -f argument2 -out argument3
How can I do that in PHP ?
I would like to execute a linux program from php, how can I do that ?
In linux terminal, I usually do :
./program_name -o argument1 -f argument2 -out argument3
How can I do that in PHP ?
Have you tried exec() ? shell_exec() ? system() ?
http://php.net/manual/en/function.system.php
You should also have a look at http://php.net/manual/en/function.escapeshellcmd.php about escaping special characters.
You'll also have to make sure that the Linux user running php/apache and so on, has the needed rights to run system commands.