CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
HTTP_HOST vs. SERVER_NAME

 



Wild_Thing
stranger

Oct 22, 2001, 11:08 AM

Post #1 of 1 (371 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?


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives