Heim >php教程 >php手册 >生成二维码

生成二维码

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 19:35:111212Durchsuche

无详细内容 无 ?phpdefine('BBSURL','http://bbs.cnfol.com/forum.php?mod=viewthreadtid=');define('QRCODEIMG','/home/www/dz_x2/data/qrcode/');include "./phpqrcode/phpqrcode.php";//引入PHP QR库文件$tid = isset($_GET['tid'])?$_GET['tid']:'';$qrco

<?php
define('BBSURL','http://bbs.cnfol.com/forum.php?mod=viewthread&tid=');
define('QRCODEIMG','/home/www/dz_x2/data/qrcode/');
include "./phpqrcode/phpqrcode.php";//引入PHP QR库文件
$tid = isset($_GET['tid'])?$_GET['tid']:'';
$qrcode_img = QRCODEIMG.$tid.'.png';
if(file_exists($qrcode_img))
{	
	header("content-type:image/png");
	$im = imagecreatefrompng($qrcode_img);
	imagepng($im);
	exit();
}else{
	$value = BBSURL.$tid;
	$errorCorrectionLevel = "L";
	$matrixPointSize = "4"; 
	QRcode::png($value, $qrcode_img, $errorCorrectionLevel, $matrixPointSize);
	QRcode::png($value, false, $errorCorrectionLevel, $matrixPointSize);
	exit;
}



?>
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:gps 搜索附近坐标Nächster Artikel:PHP自动定时循环执行任务