Re: Questions about $_SERVER
| From: | Peter Lind | Date: | Sun, 29 Aug 2010 16:34:20 +0000 |
| Subject: | Re: Questions about $_SERVER | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307745@lists.php.net to get a copy of this message | ||
On 29 August 2010 18:04, Per Jessen <per@computer.org> wrote:
> Jason Pruim wrote:
>
>> My understanding of how shared hosting works would make this near
>> impossible... Basically Apache grabs a header that is sent at the
>> initial connection which includes the destination hostname and from
>> there it translates it to the proper directory on the shared host.
>>
>> All the IP's though are based off of the parent site's server...
>>
>> Now with dedicated hosting where you have the entire machine you can
>> do what you are looking at because the IP address will always
>> translate back to your website.
>
The HTTP protocol does not provide a domain among the request header
fields - you need to implement idenfication/authentication in a
different manner (preferably in a way that does not rely upon IP
addresses, seeing as that doesn't provide any reliable sort of
identification).
Regards
Peter
--
<hype>
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
</hype>