Good afternoon, I need to run a natively built application for linux servers using php.
I have a php script that runs an application on the linux server creating some files needed to continue the application.
When running the script through the terminal the program runs correctly generating the necessary files. However when running it through the browser the same script does not run the application.
I have already used the system, exec, shell_exec, passthru functions but none properly executed the application. I would like to know what is the correct way to run applications through php and how to get and handle the respective returns.
Example I'm using:
<?php
exec('/home/dados/controll/ncolinux');
?>