Matthew Robinson wrote:
would SERVER['PHP_SELF'] do the job?
Not always.
Consider the URL
http://talrias.net/
I have a file called index.php which is the default file served.
$_SERVER['PHP_SELF'] would return '/index.php' while
$_SERVER['REQUEST_URI'] would return '/'.
Also, if I am using something like mod_rewrite PHP_SELF is completely
different to REQUEST_URI.
Since the original poster said they wanted the contents of the URI bar
they should be using REQUEST_URI rather than PHP_SELF. :)
Chris
--
Chris Jenkinson