How to exectue a shell file with PHP?
I have a file called sync.sh, so how to run the file in php and how to take the response after complete the execution? I think shell_exec() will help to trigger the file but how can I get the response that script is completed the task properly or not?
According to the documentation:
Just get the return value of that function.
And
$resultwill contain what you want.