Scan the same QR code to access different download addresses based on the browser type, browser type _ PHP Tutorial

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

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.