You can access anything after "?" with $_SERVER['QUERY_STRING']
For example
<?php
# globalEnv.php
$envs = array( "HTTP_REFERER", "HTTP_USER_AGENT", "REMOTE_ADDR", "REMOTE_HOST", "QUERY_STRING", "PATH_INFO" );
if (!isset($_SERVER['REMOTE_HOST']) && isset( $_SERVER['REMOTE_ADDR'] ) )
{
$_SERVER['REMOTE_HOST'] = gethostbyaddr( $_SERVER['REMOTE_ADDR'] );
}
foreach ( $envs as $env )
{
echo "$env: $_SERVER[$env]<br />";
}
?>
I named created a new text document, pasted this code into it and renamed it globalEnv.php.
After creating it, I put it in my web accessible directory and appended ?services to the end of the file name.
http://www.somesite.org/globalEnv.php?services
When you print $_SERVER['QUERY_STRING'] under this particular circumstance, you end up with "services" being the value.
You can play around a bit more with the above code (if you were curious, that is) and see what the other environmental vars print
<html>
<head>
<title>Global Environment Server Variables Test</title>
</head>
<body>
<?php
$self = $_SERVER['PHP_SELF'];
echo "<a href=\"http://somesite.org/globalEnv.php/my_path_info?action=click_this&this=$self\">globalEnv TEST LINK</a>";
?>
</body>
</html>
Hope this helps you out!