Php uses qr code to generate a qr code example. Copy the code as follows :? Phpini_set (display_errors, on); $ PNG_TEMP_DIRdirname (_ FILE _). DIRECTORY_SEPARATOR.temp.DIRECTORY_SEPARATOR; $ PNG_WEB_DIRtemp; include
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 '';
?>
The http://www.bkjia.com/PHPjc/718614.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/718614.htmlTechArticle code is as follows :? Php ini_set ('display _ errors ', 'on'); $ PNG_TEMP_DIR = dirname (_ FILE __). DIRECTORY_SEPARATOR. 'temp '. DIRECTORY_SEPARATOR; $ PNG_WEB_DIR = 'temp/'; include "...