cip6791 Posted July 15, 2010 Share Posted July 15, 2010 Hi, The below code displays a qr code depending on what page of a wordpress blog you are on. I need a little help with a little feature that I want. I want each qr code to be saved in a folder when it is generated, then it should be displayed in the widget from the folder, and it shouldn't be generated every time. And one last thing, I want to put them in an array and display the codes. Thank you for your help. function qrcode_show() { echo "<!-- START Create QR code -->\n"; echo "<div class=\"qrcode\">\n"; echo '<img class="qr" src="'.get_bloginfo('siteurl').'/wp-content/plugins/'.dirname(plugin_basename(__FILE__)).'/scripts/php/qr_img.php?d='.""; echo ''.the_permalink().'&e='.get_option('correction').'&s='.get_option('size').'&t=J"/>'."\n"; echo "</div>\n"; echo "<!-- END Create QR code -->\n"; } Link to comment https://forums.phpfreaks.com/topic/207805-qr-code/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.