Re: [PHP] server alias

2001-05-15 Thread Michael Kimsal
$HTTP_HOST ? Not sure - don't feel like setting up a wildcard... :) Joe Stump wrote: > Say i have a server foobar.com and in my httpd.conf i have *.foobar.com as > a ServerAlias in my is there a common PHP var that will give me > the domain someone actually types in? > > $SERVER_NAME only give

Re: [PHP] server alias

2001-05-14 Thread Joe Stump
Works great - thanks! --Joe On Tue, May 15, 2001 at 11:51:35AM +1000, Jason Brooke wrote: > > $SERVER_NAME only gives me foober.com (since that is the servername), but not > > the alias someone typed in to get there ... > > > > --Joe > > Give HTTP_HOST a go > Check here for more > http://www.ph

Re: [PHP] server alias

2001-05-14 Thread Jason Brooke
> $SERVER_NAME only gives me foober.com (since that is the servername), but not > the alias someone typed in to get there ... > > --Joe Give HTTP_HOST a go Check here for more http://www.php.net/manual/en/language.variables.predefined.php or use phpinfo() to see exactly what you have available j