title: Get Original Referrer URL from Google Search with PHP?
body: <p>I am using <code>$_SERVER['HTTP_REFERER'];</code>, to getting  Referrer URL.</p>
  
  <p>When I typed in Google search box the <code>q='some text'</code></p>
  
  <pre><code>`https://www.google.com.pk/#hl=en&amp;output=search&amp;sclient=psy-ab&amp;q=some text%2Ftestbulkresponse&amp;oq=some text%2Ftestbulkresponse&amp;gs_l=hp.3...15460.24280.1.25007.30.30.0.0.0.0.325.7136.2-27j3.30.0...0.0...1c.1.8.hp.dAvuch3bBg4&amp;psj=1&amp;bav=on.2,or.r_qf.&amp;bvm=bv.44697112,d.ZWU&amp;fp=980e418276b62e8c&amp;biw=1366&amp;bih=595`
  </code></pre>
  
  <p>but when I get this URL on my website using as  <code>$_SERVER['HTTP_REFERER'];</code> </p>
  
  <p>the <code>q=null</code> like this</p>
  
  <pre><code>`http://www.google.com.pk/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;ved=0CC0QFjAA&amp;url=http%3A%2F%2Fwww.bulkresponse.com%2Ftestbulkresponse%2Fdashboard.php&amp;ei=r9NbUfv7GcjaOYDdgKgC&amp;usg=AFQjCNF9U_DpJEwupZ0ZLPbjWJ6DQLWZcA&amp;bvm=bv.44697112,d.ZWU`. 
  </code></pre>
  
  <p>So I am unable to get searched keywords in Google, what should I can do to get searched keywords?</p>