For example I am running a script from
http://www.ita-studio.com/forum/script.php
is there any standard variable that holds the value of
http://www.ita-studio.com/forum/
???? or is there an easy way to get this?
If you need to see if it's http or https, I think you can check SERVER_PROTOCOL or $HTTPS
"http://" . $SERVER_NAME . substr($PHP_SELF, 0, strrpos($PHP_SELF, "/") + 1)