How PHP obtains Remote_port in the IIS environment

Source: Internet
Author: User
Tags knowledge base
IIS as a server, in PHP with $_server[' remote_port '] can not get the corresponding value, why, how to solve it


Reply to discussion (solution)

At least there's no sign of what you're saying in IIS I can access.

Can you tell me your configuration and version on the first floor?

I mean to be able to contact, that is not mine, I go to close the people's configuration what to do?

You know what's the use of Remote_port? This is dynamic.

I also want to know how you get the $_server[' Remote_port ' under IIS
I didn't make it to WIN7+IIS7.

How could it not?
Window 2003 Server RC2 + IIS6
Window Server + IIS7.5

echo $_server[' Remote_port '];
Dynamic port number will be displayed

I don't know what you're going to do with this stuff.

Do not know what reason is not show out, depressed!

Moderator test in the IIS5.1 or in the window 2003server SP2+IIS6 environment can get $_server[' remote_port '],asp in PHP to successfully obtain Remote_port, indicating IIS5.1 or in window 2003server SP2+IIS6 has provided remote_port, but somehow PHP is not getting it. I also want to tell the moderator, can solve the problem, you reply, why ask why we want to get this variable, I have also come into contact with the good, but I try not to use, you do not because of their access to the easy, you think all good, can only show you too narrow. What I want to know is the reason and solution of bad use, don't say those useless, make people feel shallow

For your very knowledgeable person, you can only suggest that you look at the Microsoft Knowledge Base.
Http://support.microsoft.com/kb/319083/es

IIS does not seem to be getting

PHP cannot get remote_port problem solution under IIS
Http://tkxxd.net/thread-1140-1-1.html

  • Related Article

    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.