PHP QR Code: example usage


/ Published in: PHP
Save to your folder(s)

Example usage


Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. // for url
  4. QRcode::png("http://www.google.com", "images/url.png", QR_ECLEVEL_H, 10);
  5.  
  6. // for strings
  7. QRcode::png("PHP QR Code Example", "images/string.png", QR_ECLEVEL_H, 10);
  8.  
  9. ?>

URL: http://phpqrcode.sourceforge.net/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.