|
| $_SERVER['REQUEST_URI']
The $_SERVER['REQUEST_URI'] variable tells you the file name of the current script including any url parameter strings.
Use as follows:
echo $_SERVER['REQUEST_URI'];
Example:
For url http://www.somesite.com/display.php?id=345, using $_SERVER['REQUEST_URI'] will return:
display.php?id=345
See also:
|
|