Do not do too much description, the detailed content can refer to the article "Thinkphp3.2 version combined with Phpqrcode to generate two-dimensional code and provide download."The method is to replace the QRCode () method with the QICODE_MH ()
Two ways to generate QR code using PHP (with logo image) submission: Junjie font: [Increase decrease] type: Reproduced with the progress of science and technology, QR Code application field more and more widely, today I give you to share how to use
Now two-dimensional code is some of our software station or download station commonly used a thing, in particular, will use two-dimensional code to add friends, below I will introduce the use of PHP to generate a number of two-dimensional code
[From making a logo to LCD display or VGA display logo]1. How to Create a logo:First, select a local image. Then, use the gimpsoftware to save the image as. PNG,The conversion method is not mentioned.Then pass the image to a Linux PC, such as
First, the class library used
1, Phpqrcode (PHP library)
2. Qrcode.js (JavaScript Library)
Second, the use of Phpqrcode
Only PHP class library, that is, the generation of two-dimensional code in the background operation. Because in the background
First, using the Google API to generate two-dimensional codeGoogle provides a more complete QR code generation interface, call API interface is very simple, the following is the calling code: $urlToEncode = "Http://www.jb51.net";
First, the use of Google API to generate two-dimensional codeGoogle provides a more complete two-dimensional code generation interface, calling API interface is very simple, the following is the calling code:
$urlToEncode =
One, the use of the class library
1, Phpqrcode (PHP library)
2, Qrcode.js (JavaScript library)
Second, the use of Phpqrcode
Only use PHP's class library, that is, the generation of two-dimensional code in the background operation. Because to
First, download the Phpqrcode and unzip it into the project Thinkphp\library\vendor directory.Index_index.html (template can be configured by itself)formAction= "{: U (' Index/index ')}"enctype= "Multipart/form-data"Method= "POST"> b>Size:b>
1, Download Phpqrcode class Library2, introduction of QRCode LibraryI use the TP framework, directly download the QRCode library into the TP framework under the core framework of the vendor file, vendor (' Phpqrcode.phpqrcode '); Introduced3, code
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.