Re: [PHP] How to get the Web Address of the Script

2003-09-20 Thread NukedWeb
In a message dated 9/21/2003 1:35:43 AM Eastern Standard Time, [EMAIL PROTECTED] writes: > The host: header is what HTTP_HOST is. If you can access the site > by the IP, I'm not exactly sure what will happen in that case, > cause the browser may not send that host: value. > If it's accessed b

Re: [PHP] How to get the Web Address of the Script

2003-09-20 Thread Curt Zirzow
* Thus wrote Dan Anderson ([EMAIL PROTECTED]): > 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