title: Passing cmd line variables from a php file
body: <p>Is this possible from a PHP file</p>
  
  <pre><code>$var1 = 1  
  $var2 = 2  
  $output = `./a.out $var1 $var2 `
  </code></pre>
  
  <p>or </p>
  
  <pre><code>$output = exec(./a.out $var1 $var2);
  </code></pre>
  
  <p>consider a.out to be the C program executable. </p>
  
  <p>Where $var1 and $var2 are passed as command line arguements? If this is not possible, is there any other easier way of passing php variables as input to my C program executable?</p>
  
  <p>Thanks!</p>