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
260 stars 76 forks source link

Dynamic URL created without http prefix #6

Closed davemaxx closed 1 year ago

davemaxx commented 2 years ago

I installed this application in a subdomain and I created a dynamic QR code. The link created is "subdomain.domain.extension/read.php?idIDENTIFIER" and it works on an Android phone, however on iPhone, the camera "Search for that string on Safari" rather than just sending the browser to that url.

It would be possible to have the function that creates the dynamic link to add the "HTTP" at the beginning of the url?

Could anyone point out to me what is the file that builds the link? I searched a bit but couldn't figure this out.

Thanks

davemaxx commented 2 years ago

Not sure if what I did is formally correct, however it works. I edited the config.php file line 15 from: define('READ_PATH', $_SERVER['HTTP_HOST'].'/read.php?id=');
to define('READ_PATH','http://'. $_SERVER['HTTP_HOST'].'/read.php?id='); Let me know if this accettable. Thanks

fusignbc commented 2 years ago

when I scan the QR code it says error, the page doesn't exist could you please let me know how could i fix it?

Researcher33 commented 2 years ago

when I scan the QR code it says error, the page doesn't exist could you please let me know how could i fix it? There are no errors in the codes, don't bother. Extract the contents of the PHP-Dynamic-Qr-code file and delete the PHP-Dynamic-Qr-code file. Change PHP version to 7.4 and install again. Incompatibility with PHP version.