There are many programs for generating QR codes on the Internet. We found that Google and some foreign websites provide plug-ins or APIs for generating QR codes for free. Let me introduce several to you.
The simplest and most practical goolge open source method
1.google open api
Example
The code is as follows
|
Copy code
|
||||
$urlToEncode="http://gz.altmi.com" ; generateQRfromGoogle($urlToEncode);function generateQRfromGoogle($chl,$widhtHeight ='150',$EC_level='L',$margin='0') { $url = urlencode($url);
} The above method is simple and fast, only a few sentences are enough, but there are some shortcomings It calls the Google server. If Google does not provide services, we will not be able to . Let’s look at the 2.php class library PHP QR Code
Previous article:PHP infinite classification (with layer depth) algorithm_PHP tutorial
Next article:CKEditor integrates ckfinder to implement image upload_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
Group MySQL results by ID for looping over
I have a table with flight data in mysql. I'm writing a php code that will group and displ...
From 2024-04-06 17:27:56
0
1
406
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
|