Originally posted by gford
I know I can look at system variable REQUEST_URI to get the URL loaded. But this is the pre-mod_rewrite url
i just tested it (apache 1.3, php 4.3.11)
localhost/some-entry is entered and get's translated to index.php?debug=0&show=1
my results:
$SERVER['REQUEST_URI'] holds the value, the user entered in the adress bar
/some-entry
$SERVER['REDIRECT_URL'] contains the very same value
$_SERVER['SCRIPT_NAME'] contains the script being called
index.php
$SERVER['REDIRECT_QUERY_STRING'] contains ?debug=0&show=1
$SERVER['QUERY_STRING'] contains the very same value
hth