why can i not get the environment variable "script_name" when on a directory index (ie index.php)
Dear Ryan,
You can use $PHP_SELF this gives the URL without the hostname of your script!
Gr.
Kasper