How to get the Web Address of the Script

From: Date: Sun, 21 Sep 2003 03:43:24 +0000
Subject: How to get the Web Address of the Script
Groups: php.general 
Request: Send a blank email to php-general+get-163328@lists.php.net to get a copy of this message
I am creating a script and there is an autoconfig file. I want to read in the web address of the server, and throw some correct URLs into the database. Will using $_SERVER['HTTP_HOST'] guarantee getting me the domain name of the server on which the web page I am viewing is hosted? I am somewhat worried about using such variables because I seem to remember it being possible to disable them in PHP.ini, but I would love to get some feedback. -Dan

« previous php.general (#163328) next »