Open k0v4back opened 5 years ago
My code: `<?php
use Zxing\QrReader;
$qrcode = new QrReader('http://qrcoder.ru/code/?lalala&4&0'); $text = $qrcode->text(); //return decoded text from QR Code echo $text;
I have error: Attempted to call function \"imagecreatefromstring\" from namespace \"Zxing\" ` How to fix problem?
Check if you have GD lib extension activated in PHP
This solved for me, uncommenting extension GD on php.ini file.
My code: `<?php
use Zxing\QrReader;
$qrcode = new QrReader('http://qrcoder.ru/code/?lalala&4&0'); $text = $qrcode->text(); //return decoded text from QR Code echo $text;
I have error: Attempted to call function \"imagecreatefromstring\" from namespace \"Zxing\" ` How to fix problem?