QR code is a type of two-dimensional barcode. It can compile website addresses, text, photos and other information into a square barcode pattern through corresponding encoding algorithms. Mobile phone users can re-decode the relevant information and view the content through the camera and decoding software
php class library PHP QR Code
# Two sentence explanation:
# If you include qrlib.php, you need to put it together with other files: files and folders.
# phpqrcode.php is the merged version, you only need to include this file, but the generated image is slow and inaccurate
# Two usages are given below:
The code is as follows
|
Copy code |
||||||||||||||||
include('./phpqrcode/phpqrcode.php'); // QR code data
// Generated File name $filename = $errorCorrectionLevel.'|'.$matrixPointSize.'.png'; // Error correction level: L, M, Q, H
# Create a QR code file QRcode::png('code data text', 'filename.png');
Previous article:PHP mysql operation program_PHP tutorial
Next article:PHP file upload progress bar implementation program_PHP tutorial
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Latest Issues
When adding sublime3 to compile system php, use the PHP toolbox, cmd php -v is useless
From 1970-01-01 08:00:00
0
0
0
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
|