I'm running scripts in a subdomain, and need a way to find the
correct URI of the path -- i.e. the path the browser would use
to the directory the script is executing in.
The PHP variables,
_SERVER["SCRIPT_URI"] or
_ENV["SCRIPT_URI"],
evaluate to "http://www.domain.net/dir/script.php".
instead of "http://www.SUBDOMAIN.domain.net/dir/script.php"
First is wrong, second is right. There IS NO SUCH URI as the
first one. Or if there is, it's NOT what's executing.
Somebody tell me it's not a bug, because it's possible to work
around it. Haha.