David:

On Thu, Aug 08, 2002 at 10:30:15PM +0200, David D wrote:
> 
> I make 2 sites with 2 domain names that use same scripts,
> Each has got its html templates in a special dir selected judgging from
> $HTTP_HOST values.
... snip ...
> search engine works, did they affect this var correctly ?

If there was an HTTP request, then the HTTP_HOST will be set.

The only problem you can run into is if someone hits the site via the IP
address, since you said you only have one.  In that case, the HTTP_HOST
will hold the IP address.  So, decide now which scripts you want to use in
that case.

Even better, set up two options in your logic:
  if domain name 1, use script set 1
  everything else, use script set 2

--Dan

-- 
               PHP classes that make web design easier
        SQL Solution  |   Layout Solution   |  Form Solution
    sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to