%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : kowitt.ac.th / Your IP : 216.73.216.106 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();
// how to save PNG codes to server
include('phpqrcode/qrlib.php');
$codeContents = 'This Goes From File';
// we need to generate filename somehow,
// with md5 or with database ID used to obtains $codeContents...
$tempDir = '../upload_qrcode/';
$fileName = $_SESSION['ReCode_User'].'.png';
$pngFilePath = $tempDir.$fileName;
QRcode::png($codeContents,$pngFilePath, 'L', 6, 1);
//$urlFilePath = $fileName;
// generating
// if (!file_exists($pngFilePath)) {
//
//
// echo 'File generated!';
// echo '<hr />';
// } else {
// echo 'File already generated! We can use this cached file to speed up site on common codes!';
// echo '<hr />';
// }
// displaying
echo '<img src="'.$tempDir.$fileName.'" />';
?>