<>php How to determine what kind of network WiFi cmwap the user is using Cmnet access

Source: Internet
Author: User
<求助> PHP How to determine what kind of network WiFi cmwap cmnet accessed by the user
Recently, you need to add a link to your phone app. Need to determine the link network mode
How should I judge, is to get the browser header header information or other way
Ask for answers????


------Solution--------------------
There's no 100% accurate way
1. Judging the browser header
2. Determine IP and ISP
3. Use Js+ajax to return features according to the features of the mobile browser (different versions of browsers always have something that is not supported, judging by this)
4. Other--the characteristics of the cell phone, I don't know.
------Solution--------------------
If you have a good relationship with the carrier. Allows the operator to return it to you. In fact, QQ is and they have cooperation. With a special protocol. You're not a carrier, and you're not moving through the Internet.



------Solution--------------------
The head must be without this information, PHP can not judge.
------Solution--------------------
If there is no change, the agent is a little bit different, the change is hard to say, such as secket or other software to simulate the access of the client
------Solution--------------------
Reference:
Reference: The head must be without this information, PHP can not judge.
That should be how to judge, look at the Android client is very good to judge.
What external programs do you need to get, guidance please!!


Mobile client, such as Android or iOS app, can determine whether the current network connection is to go WiFi or mobile network (3G, LTE, etc.)
This is the function provided by the operation system itself. It cannot judge whether you are using mobile or telecom, Unicom's network.

Simply by PHP in the remote server side is no way to judge, through the client IP address to judge is yes, but it is too difficult. Need to spend money to buy a database and update it in time.
  • 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.