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