<BR><?php <BR>$data = isset($_GET['t']) ? $_GET['t'] : 'http://www.XXX.com'; <BR>$size = isset($_GET['size']) ? $_GET['size'] : '150x150'; <BR>$logo = isset($_GET['logo']) ? $_GET['logo'] :"./image/logo.jpg"; <br><br>$chl = urlencod<a>本2文来*源gao($daima.com搞@代@#码(网</a><strong>搞gaodaima代码</strong>e($logo); <BR>$png = "http://chart.googleapis.com/chart?chs=$size&cht=qr&chl=$chl&chld=L|1&choe=UTF-8"; <BR>$QR = imagecreatefrompng($png);//外面那QR图 <BR>if ($logo !== FALSE) { <BR>$logo = imagecreatefromstring(file_get_contents($logo)); <BR>$QR_width = imagesx($QR); <BR>$QR_height = imagesy($QR); <BR>$logo_width = imagesx($logo); <BR>$logo_height = imagesy($logo); <BR>$logo_qr_width = $QR_width/5; <BR>$scale = $logo_width/$logo_qr_width; <BR>$logo_qr_height = $logo_height/$scale; <BR>$from_width = ($QR_width-$logo_qr_width)/2; <BR>imagecopyresampled($QR, $logo, $from_width, $from_width, 0, 0, $logo_qr_width, $logo_qr_height, $logo_width, $logo_height); <BR>} <BR>header('Content-type: image/png'); <BR>imagepng($QR); <br><br>imagedestroy($QR); <BR>?> <BR>