%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : www.kowitt.ac.th / Your IP : 216.73.216.118 Web Server : Microsoft-IIS/7.5 System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.6.31 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/mis/student/mis/qr_payment/Tool_QRcode/ |
Upload File : |
<?php session_start(); include('phpqrcode/qrlib.php'); $param = $_GET['id']; // remember to sanitize that - it is user input! // we need to be sure ours script does not output anything!!! // otherwise it will break up PNG binary! ob_start("callback"); // here DB request or some processing $codeText = $param; // end of processing here $debugLog = ob_get_contents(); ob_end_clean(); // showoutputs image directly into browser, as PNG stream QRcode::png($codeText, false, 'H', 4, 1); //save file qrcode .png $tempDir = '../upload_qrcode/'; $fileName = trim($_SESSION['stu_id']).'.png'; //$fileName = "6031060002".'.png'; $pngFilePath = $tempDir.$fileName; $del=unlink($tempDir.$fileName);//ลบไฟส์ในโฟเดอร์ก่อน QRcode::png($codeText,$pngFilePath, 'H', 4, 1); //saveไฟล์ ?>