----------------------------------------
1. After testing, the QR code is generated and the screen that appears after scanning
a. For example, information scanned using QQ can be directly added to contacts. This should be processed by QQ after scanning the QR code,
b. If used to scan, the scanned content will only contain the corresponding text information without processing, and the contact software of the mobile phone system cannot be called
2.Business card code:
Generate business card with php:
$vname = 'test';
$vtel = '13800000000';
generateQRfromGoogle($vname,$vtel);
function generateQRfromGoogle($vname,$vtel,$widhtHeight ='150',$EC_level='L',$margin='0')
{
if($vname&&$vtel){
$chl = "BEGIN:VCARDnVERSION:3.0". //vcard header information
"nFN:$vname".
"nTEL:$vtel".
"nEND:VCARD"; //vcard tail information
echo '';
}
}
?>
PHP generates URL QR code:
$url = "http://www.google.com.hk";
generateQRfromGoogle($url);
function generateQRfromGoogle($chl,$widhtHeight ='150',$EC_level='L',$margin='0')
{
echo '';
}
?>
-------------------------------------------------- -----------------------