Re: Questions about $_SERVER
| From: | Jason Pruim | Date: | Sun, 29 Aug 2010 15:54:43 +0000 |
| Subject: | Re: Questions about $_SERVER | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307741@lists.php.net to get a copy of this message | ||
On Aug 29, 2010, at 10:55 AM, tedd wrote:
At 10:56 AM +0200 8/29/10, Peter Lind wrote:Hey tedd, 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. Now hopefully my understanding of shared hosting isn't flawed but if it is I'm sure someone will nicely point out why :)On 29 August 2010 08:08, Jim Lucas <lists@cmsws.com> wrote: *snip*To all: My post about SERVER globals was simply an observation that the SERVER global report of host and remote was not symmetric -- for example you could obtain both the IP and Domain Name of the host, but only the IP of the remote. Sorry for any confusion I may have caused in my post. As to the reason why I was asking, please review my next post, namely "Secure Communication?" Cheers, teddTheir is not existing variable (if you would) that your server, when connecting to a remote server, would be sending. So, to have the remote end be able to identify the initiating host identity, the initiating side would have to add some something to the headers or pass it along in the body of the request itself.+1. Let the requestion script send through identification/authentification. Regards Peter