There you go, a function that will generate a QR Code with the help of a function hosted on the Google API servor. function generate_qr($url, $size ='150', $imgsize = false, $EC_level='L', $margin='0') { $url = urlencode($url); ...