简体   繁体   English

phpqrcode图片无法识别为活动网址

[英]phpqrcode image not recognized as an active url

I made a PHP script that takes severall URLs from a database and outputs QrCodes using the phpQrCode Library. 我制作了一个PHP脚本,该脚本从数据库中获取多个URL,并使用phpQrCode库输出QrCodes。

Qr codes are output in an eps file and printed on handouts by our printing services. 二维码以eps文件输出,并由我们的打印服务打印在讲义上。

This much is working fine, but some of the QR codes when read on my phone take me to the page directly, but some only give methe URL of the page as a string. 大部分工作正常,但是当我在手机上阅读某些QR码时,会将我直接带到页面,但有些仅将页面的URL作为字符串给我。

The OP was able to find the solution to his own problem. OP能够找到自己问题的解决方案。 It was: 它是:

My users have left a space in the beginning of the string when pasting the URL so the library is doing just what it is supposed to, I will be using some ltrim and rtrim to fix this. 我的用户在粘贴URL时在字符串的开头留了一个空格,因此库正在执行应做的工作,我将使用ltrim和rtrim修复此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM