title: Passing GET variable to php EXEC
body: <p>I've tried searching but haven't had much luck- apologies if this is answered somewhere.</p>
  
  <p>I'm playing with a few bits and pieces and I was trying to pass a URL variable to EXEC.
  Here's what I was trying..
  sc.exe is a program I have to pass a URL- the $GET_ID variable has to come from the URL</p>
  
  <pre><code>  $GET_ID =$_GET= ['myid'];
    exec('sc.exe --url=http://localhost/DS1/test.php?ID='.$GET_ID.'&amp;TEST=1');
    echo $GET_ID;
  </code></pre>
  
  <p>When I try this code out- the GET variable doesn't seem to be passed, the program gets 
  <a href="http://localhost/DS1/test.php?ID=&amp;TEST=1" rel="nofollow">http://localhost/DS1/test.php?ID=&amp;TEST=1</a>'</p>
  
  <p>I've done a bit of searching.. and this seems to be a restriction of sorts.. So what is the solution/ workaround ? </p>
  
  <p>thanks</p>