giandonatoinverso / PHP-Dynamic-Qr-code

PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
MIT License
244 stars 73 forks source link

Testing Qrcode with logo option #19

Closed DanielAlao closed 2 years ago

DanielAlao commented 2 years ago

Hi there, Great app! For testing purposes, I was just wondering if it is possible to have the same logo for every qr code, by including the image link in the Dynamic_Qrcode.php file like $logo = “https://i.stack.imgur.com/ILTQq.png, instead of getting it from a form ($logo = $_POST[‘optionlogo’]). I have tried to do this, but the app is creating a qrcode without the logo still. I have un-commented all lines but it is still not working. Is there a step that I am missing, or anything else I have to modify in the app?

Many thanks

giandonatoinverso commented 2 years ago

As specified in the documentation, the functionality of inserting a logo in the center of the qr code has not been adequately tested and in any case it is not recommended because not all scanners would be able to recognize the qr code in this format. I recommend that you investigate better with a debugger

DanielAlao commented 2 years ago

Hi there, thanks for your quick response I have setup the debugger and using it, I just had another question, can this app be hosted on Azure AD?

Many thanks

giandonatoinverso commented 2 years ago

Hi if by azure AD you mean the identity management service, then you intend to use the resources (example: db) to store qr code, then you need to use azure sql server adapter. So in the adapter you create the object that opens the connection and manages the communication with the db and then you use it in Mysqldb (wrapper of the db that I have implemented in the program).

If you mean azure as azure's cloud computing service then you have to create a classic php application with mysql and import everything.