title: Get return value from a bash script with PHP
body: <p>How to exectue a shell file with PHP?</p>
  
  <p>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 <code>shell_exec()</code> will help to trigger the file but how can I get the response that script is completed the task properly or not?</p>