< help >php How to determine what kind of network WiFi cmwap cmnet access the user uses

Source: Internet
Author: 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????


Reply to discussion (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 features of the phone, I don't know.

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.


The head must be without this information, PHP can not judge.

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!!

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

Reference to the 3 floor Zxwangqiang reply: 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.

Reference to the 4 floor su8785723 reply: Reference 3 floor Zxwangqiang reply: The head is certainly no such 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 department ...
Tried a lot, PHP directly can not get to the network connection mode, the IP of the judgment company will definitely not use.
Found a WURFL XML, only found the relevant information and parameters of the cell phone not found network connection mode
Can not be seen through some browser header or return information, such as UC those mobile browser they should have been judged.

To move the file that asked for a copy of the IP segment. Now it's time to judge, the knot is pasted.

The IP segment files can be shared without

To move the file that asked for a copy of the IP segment. Now it's time to judge, the knot is pasted.
Can you share the mobile IP segment data privately?

  • 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.