Step 2: Use Google API to create a QR code
Google provide an interface to help us to create a qr code, by it we can create our qr code very easily, you can know more information in google api.
To show example, i create a demo to show how to a qr code to store up information.
Fox example, i plan to use a qr code to store up informaiton:http://www.stepor.com, you can use code below:
<?php function generateQRfromGoogle($data,$widhtHeight='150',$EC_level='L',$margin='0'){ $url=urlencode($data); echo '<img src="http://chart.apis.google.com/chart?chs='.$widhtHeight.'x'.$widhtHeight.'&cht=qr&chld='.$EC_level.'|'.$margin.'&chl='.$data.'" widhtHeight="'.$widhtHeight.'" widhtHeight="'.$widhtHeight.'"/>'; } $data='http://www.stepor.com/'; generateQRfromGoogle($data); ?>
Then save code and open it by my browser, i get a qr code which stores up informaiton:http://www.stepor.com
Google+Pages: 1 2