kohana - How to generate QR code in PHP with custom fields -
i want add together these fields in qr code "first name", "last name","phone" , "email", "homepage url".
i using qrcode class uses google api generate qr code.
public function contact_info_custom($fname,$lname, $phone, $email,$url){ $this->data = "mecard:n:".$lname.";".$fname.";fn:".$fname.' '.$lname.";tel:".$phone.";email:".$email.";url:".$url.";"; } so problem is: last name & website fields not appearing on phone
the qr code generated above method
going form this documentation, of delimiters aren't quite right, so:
$this->data = "mecard:n:".$lname.";".$fname.";fn:".$fname.' '.$lname.";tel:".$phone.";email:".$email.";url:".$url.";"; becomes more like:
$this->data = "mecard:n:".$lname.",".$fname.";nickname:".$fname.' '.$lname.";tel:".$phone.";email:".$email.";url:".$url.";"; giving:
which scans correctly, @ to the lowest degree on windows phone using bing vision.
php kohana qr-code
No comments:
Post a Comment