
Wild_Thing
stranger
Oct 22, 2001, 11:08 AM
Post #1 of 1
(194 views)
|
|
HTTP_HOST vs. SERVER_NAME
|
Can't Post
|
|
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?
|