Scan the same QR code to access different types of Web browsers.
1 <? Php 2 3 $ Agent = $ _ SERVER ['HTTP _ USER_AGENT ']; 4 preg_match ('/android | iphone/I ', $ Agent, $ matches ); 5 if (strtolower ($ matches [0]) = 'android') {6 // echo "android"; 7 header ("Location :". $ GLOBALS ["public_appconfig"] ["app"] ['android']. "'"); 8} elseif (strtolower ($ matches [0]) = 'iphone') {9 header ("'location :". $ GLOBALS ["public_appconfig"] ["app"] ['ios ']. "'"); 10} else {11 // you are not sure what the system is or what the service is. N: ". $ GLOBALS [" public_appconfig "] [" app "] ['android']." '"); 13} 14 1516?>
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