A QR code is used to record data information with a specific geometric image on a plane. a QR code is a common QR code. We recommend that you use the php class library PHPQRCode that generates the QR code. The following is an example.
A QR code is used to record data information with a specific geometric image on a plane. a QR code is a common QR code. We recommend that you use the php class library php qr Code that generates QR codes. The following is an example.
The Code is as follows:
Ini_set ('display _ errors ', 'on ');
$ PNG_TEMP_DIR = dirname (_ FILE _). DIRECTORY_SEPARATOR. 'temp '. DIRECTORY_SEPARATOR;
$ PNG_WEB_DIR = 'temp /';
Include "qrlib. php"; // QRcode lib
$ Data = 'HTTP: // www.jb51.net'; // data
$ Ecc = 'H'; // L-smallest, M, Q, H-best
$ Size = 10; // 1-50
$ Filename = paipng_temp_dir.'qrcode_'.time().'.png ';
QRcode: png ($ data, $ filename, $ ecc, $ size, 2 );
Chmod ($ filename, 0777 );
Echo '';
?>
,