title: Store all GET requests in a single variable PHP
body: <p>I am trying to store any and all variables sent to the site in a single variable (just for logging purposes.)</p>
  
  <p>So if a user goes to www.mysite.com and put on a ?id=4&amp;auth=230984721839</p>
  
  <p>I want to grab both of those GETs and store them in a variable such as $gets</p>
  
  <p>I was trying:</p>
  
  <pre><code>$gets = print_r($_GET);
  $posts = print_r($_POST);
  </code></pre>
  
  <p>But it did not work. Is this even possible? I don't want the user know I am capturing these.</p>
  
  <p>I would also like to grab POSTs too!</p>