I am trying to get all the GET parameters, but I am not able to get them. Array is empty. The same I tried in a different server where it is working without any issue. Can anyone please help in solving this. I am wondering where could be the problem ?
http://example.com/test.php?utm_source=google&utm_medium=email&utm_campaign=X&utm_content=Register
It is very strange that I am able to get same parameters through POST method.
Below is the code I am using.
<?php
echo "Method 1<br/>";
print_r($_REQUEST);
echo "<br/>Method 2<br/>";
var_dump($_SERVER['REQUEST_URI']);
echo "<br/>Method 3<br/>";
var_dump($_SERVER['QUERY_STRING']);