How does php obtain the port used by the user to log on to the website?

Source: Internet
Author: User
Php: how to obtain the port title used by the user to log on to the website: php: how to obtain the port used by the user to log on to the website or php: how to obtain the port content used by the user to connect to the server & nbsp; **************************************** * ********** in Baidu, I found out how php can obtain the port used by the user to log on to the website.
Title:
How does php obtain the port used by the user to log on to the website?
Or
How does php obtain the port used by the user to connect to the server?

Content *************************************** ************

I found in Baidu that the $ _ SERVER ['remote _ port'] function can be used to obtain the PORT. I tried it in the local php environment and can obtain my PORT after we log on or exit, but when I move my stuff to my server, I cannot get it. let's help solve it! Thank you !!!





Port? Server Port? Share the user port:
------ Solution --------------------
In earlier versions of IIS, php does not have $ _ SERVER ['remote _ port'] (in Windows 2008 + IIS7.5)
You need to download the REMOTE_PORT patch on the Microsoft website.

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.