title: Passing exec command with php variable
body: <p>I have searched and searched for an answer for this but everything referenced did not have any helpful information regarding my problem. I am trying to send a kill signal to a process I have in order to make the channel skip the current song. The command that needs to be run is: 
  kill -10 PID </p>
  
  <p>Please note: $pid2 (below) will hold the true value of the process ID </p>
  
  <p>You can see what I have already:</p>
  
  <pre><code>$pid1 = explode(" ", $pid[0]);
  $pid2 = $pid1[3];
  $next = shell_exec("kill -10" . "$pid2");
  </code></pre>
  
  <p>This is what I have found to be the solution, but it throws the below error while passing the kill command:</p>
  
  <p>sh: 1: Syntax error: redirection unexpected</p>
  
  <p>Kindly advise..</p>