I tried to make script for users as simple as possible. User don't have to type the URL to script in script configuration. Instead of this I'm using line like this: $script_url = "http://$ENV{'HTTP_HOST'}$ENV{'SCRIPT_NAME'}"; As far as I know it works (no complainings yet), but what difference is between HTTP_HOST and SERVER_NAME? Which case is better, and more foolproof?