Scan the same QR code to access different types of web browsers. Scan the same QR code and access it differently based on the browser type. the browser type is 1? Php23 $ Agent $ _ SERVER [HTTP_USER_AGENT]; 4preg_match (android | iphonei, $ Agen scans the same QR code for different browser types.
1
How is a Web site different from a string scanned by the java QR code? How does one jump to a browser to access the Web site?
Use a regular expression to determine if it is a URL
Then jump to the browser with Intent
Scan the QR code to download the installation file to your mobile phone. ask how to identify the IOS or ANDROID system when the mobile phone is used?
You can put the two in the same website page, and then make the URL link into a QR code so that the person who needs to download the link can choose to download the link, as shown in figure
Limit 1? Php 2 3 $ Agent = $ _ SERVER ['http _ USER_AGENT ']; 4 preg_match ('/android | iphone/I ', $ Agen...