如何在php中从url生成QR图像
how can i generate QR Images from an URL and display them on a website?
ideally in PHP but any other popular server side language would work too, as long as it is not too complicated to set up.
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
http://code.google.com/p/qrforall/ 是一个 PHP 类自动创建二维码图像。
http://code.google.com/p/qrforall/ is a PHP class for automatic creation of qr code images.
请参阅 Google 图表及其 QR 码输出。
请注意,它已弃用(请参阅https://developers.google.com /图表/条款)。
指向 https://www.google.com 的 300x300 像素二维码示例:
https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=http%3A%2F%2Fwww.google.com%2F&choe=UTF-8
See Google chart and it's QR code output.
NOTE that it has been deprecated (see https://developers.google.com/chart/terms).
Sample QR code pointing to https://www.google.com of 300x300 pixels:
https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=http%3A%2F%2Fwww.google.com%2F&choe=UTF-8
由于 Google 图表自 2012 年 4 月起已被弃用,因此您可以使用 http://phpqrcode.sourceforge.net/ 代替:
As Google chart has been deprecated since April 2012, you can use http://phpqrcode.sourceforge.net/ instead: