$_server[' Remote_host '] about the problem! Seeking Daniel's Guidance twos

Source: Internet
Author: User
$_server[' remote_host '] problem! Seeking Daniel's Guidance twos
Title:

Probably the case: I am in the VPS test program, $_server[' Remote_host ' want to get the domain name of the remote host
However, my server is IIS, no csdn above a cow said: Modify the Conf file in the hostnamelookups variable on
The reason for not changing Apache is because of temporary unaccustomed. Temporarily do not want to change, if this problem really can not solve I change.

$_server[' Remote_host '] I've been getting IP/not domain name

I also use the language of asp: Request.ServerVariables ("REMOTE_ADDR") but get to the domain name.

They function is exactly the same, why one gets to the IP one is the domain name I want.

How can I change it to use


PHP language Gets the domain name of the host remote access! php? Server Remote_host


------Solution--------------------

References:
online and other answers, thank you!


Gets the host on which the current program resides is $_server[' Http_host '.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.