How to obtain REMOTE_PORT from PHP in IIS environment

Source: Internet
Author: User
In the IIS environment, how does PHP obtain REMOTE_PORT IIS as the SERVER? in PHP, $ _ SERVER ['remote _ port'] cannot obtain the corresponding value. why? how can this problem be solved?


Reply to discussion (solution)

At least there is no such phenomenon in IIS that I can access.

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

I mean, I can access it, that is, it's not me. what should I do when I close the configurations?

What is the use of REMOTE_PORT? This is dynamic.

I also want to know how you obtained $ _ SERVER ['remote _ port'] under iis.
I have never succeeded in win7 + iis7.

Why not?
Window 2003 server RC2 + IIS6
Window 2008 server + IIS7.5

Echo $ _ SERVER ['remote _ port'];
Dynamic port numbers are displayed.

I really don't understand what you want to do with this ?!

I don't know why it is not displayed. it's depressing!

The moderator can obtain $ _ server ['remote _ port'] in PHP in IIS5.1 or Windows 2003 SERVER sp2 + iis6. ASP can obtain REMOTE_PORT successfully, it indicates that IIS5.1 or Windows 2003 server sp2 + iis6 has provided REMOTE_PORT, but I do not know why PHP cannot be obtained. I also want to tell the moderator that the problem can be solved, and you will reply. why should we ask why we need to get this variable? I have also been familiar with the useful ones, but I cannot try it myself, you don't think it is easy to use it because you are familiar with it. it only shows that your knowledge is too narrow. What I want to know is the cause and solution to the problem. let alone the useless ones.

For a very knowledgeable person, you can only look at Microsoft's knowledge base.
Http://support.microsoft.com/kb/319083/es

IIS does not seem to be available

Solution to REMOTE_PORT problem cannot be obtained by PHP in IIS
Http://tkxxd.net/thread-1140-1-1.html

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.