Re: [PHP] $http_host use case

2002-08-09 Thread David D

You re right i will make a if statement ...



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




Re: [PHP] $http_host use case

2002-08-09 Thread Analysis & Solutions

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




[PHP] $http_host use case

2002-08-08 Thread David D

Hi all,

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.

I was wondering me how a web crawler (search engine robot) could refer those
pages.
Would crawler bring that parameter in order to refer well both sites...

I see a short explanation of http_host at :
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.serve
r
=>
'HTTP_HOST'

Contents of the Host: header from the current request, if there is one.

It makes me doubt.

My server is an apache php 1.3.20 with 1 ip so http 1.1 is mandatory, how
search engine works, did they affect this var correctly ?
Is there any crawlers that doesnt support http 1.1 again ?

If there isn't this var my site would melt down !


merci.
a+.








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