简体   繁体   中英

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.

Qr codes are output in an eps file and printed on handouts by our printing services.

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.

The OP was able to find the solution to his own problem. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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