I want to get a URL and its parameters. Example:
www.someweb.com/somepage.php?id=10
How to get only
Here's probably what you are looking for: php-get-url-query-string. You can combine it with other suggested $_SERVER parameters.
$_SERVER