NAME"] and $_SERVER["HTTP_
HOST"] are good and all, but none
of them are reliable.
Eg: Not all subdomains will have a vhost entry for them in Apache, or the
Host: header is not filled in.
So are there any other methods of determining the URL of the script itself?