Jumat, 08 Mei 2020

PHP Code generate QRCODE


$PNG_TEMP_DIR ='ypathfile/';
    include "qrlib.php";   
   
    if (!file_exists($PNG_TEMP_DIR))
        mkdir($PNG_TEMP_DIR);
   
    $NF=$id_peserta.'.png';
    $filename = $PNG_TEMP_DIR.$NF;
echo $filename;

    $errorCorrectionLevel = 'L';//'L','M','Q','H'
    $matrixPointSize = 10;

    QRcode::png($id_peserta, $filename, $errorCorrectionLevel, $matrixPointSize, 2); 


Download Library

Tidak ada komentar:

Posting Komentar

global_priv WARNING Selalu

 Jika muncul pesan kesalahan: Warning in .\libraries\classes\Dbal\DbiMysqli.php#209  mysqli::query(): (HY000/1034): Index for table 'glo...