1
Good afternoon, I need to run an application built natively 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 executing the script by the terminal the program runs correctly generating the required files. But when running it from the browser the same script does not run the application.
I have already used the functions system, exec, shell_exec, passthru but none executed properly 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 am using :
<?php
exec('/home/dados/controll/ncolinux');
?>
Please avoid long discussions in the comments; your talk was moved to the chat
– bfavaretto