This is probably easy, but I can't seem to find the answer at PHP.net. I need to have PHP determine the *absolute* URL of the current page, such as...

http://www.domain.com/directory/page.php?variable=value

So $PHP_SELF won't work for this purpose. AND... it needs to reflect the URL of the *parent* document if the command (whatever it is) originates from an included file. (It should not list the URL of the included file).

Can anyone help? Thanks!