查看文件: makeqrcode.php
大小: 1012 字节
类型: application/octet-stream
<?php require_once('./tcpdf/tcpdf_barcodes_2d.php'); //$code='北投遊覽車有限公司'; $code='天御國際機場接送結婚禮車'; $id=31; /* if (isset($_GET['compny'])&&($_GET['compny']<>'')) { $code = $_GET['compny']; } if (isset($_GET['id'])&&($_GET['id']<>'')) { $id = $_GET['id']; } if (isset($_GET['id'])&& isset($_GET['compny']) ) { */ //http://www.bus104.com/admin/makeqrcode.php $pngurl='http://www.bus104.com/'.$code; $barcodeobj = new TCPDF2DBarcode($pngurl, 'QRCODE,H'); // output the barcode as PNG image $filepng2='/www/bus104/shoppic/'.$id.'/'.$code.'.png'; if (file_exists($filepng2)){ unlink($filepng2); } $hex = $color1[$contentcolor] ; $r = hexdec(substr($hex,0,2)); $g = hexdec(substr($hex,2,2)); $b = hexdec(substr($hex,4,2)); $barcodeobj->getBarcodePNG(8, 8, array($r,$g,$b),$filepng2); $chk_file=true; while($chk_file) { if (file_exists($filepng2)){ $chk_file=false; } } // }
保存
取消
返回文件列表