Advertisement
developer

Generate QR Code with PHP

Feb 19th, 2011
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. function createQR($url,$s ='200',$er='L',$b='0') {
  2.    $url = urlencode($url);
  3.    return '<img src="http://chart.apis.google.com/chart?chs=' . $s . 'x' . $size . '&cht=qr&chld=' . $er . '|' . $b . '&chl=' . $url . '" alt="TAG" width="' . $size . '" height="' . $size . '"/>';
  4. }
  5.  
  6. echo createQR('http://www.yourdomain.com',200);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement