<求助> 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.