<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iBlog random &#187; api</title>
	<atom:link href="http://blog.zurka.us/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zurka.us</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 28 May 2013 20:28:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6</generator>
		<item>
		<title>Generate QR Codes with php (EASY)</title>
		<link>http://blog.zurka.us/generate-qr-codes-with-php-easy/</link>
		<comments>http://blog.zurka.us/generate-qr-codes-with-php-easy/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 22:30:19 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[qr code]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=1079</guid>
		<description><![CDATA[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 =&#039;150&#039;, $imgsize = false, $EC_level=&#039;L&#039;, $margin=&#039;0&#039;) { $url = urlencode($url); return &#039;&#60;img src=&#34;http://chart.apis.google.com/chart?chs=&#039;.$size.&#039;x&#039;.$size.&#38;cht=qr&#38;chld=&#039;.$EC_level.&#039;&#124;&#039;.$margin.&#039;&#38;chl=&#039;.$url.&#039;&#34; alt=&#34;QR code&#34; width=&#34;&#039;.($imgsize ? $imgsize : $size).&#039;&#34; height=&#34;&#039;.($imgsize ? $imgsize : $size).&#039;&#34; /&#62;&#039;; } You call [&#8230;]]]></description>
				<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;" class="linksalpha_widget">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%3A%2F%2Fblog.zurka.us%2Fgenerate-qr-codes-with-php-easy%2F&title=Generate+QR+Codes+with+php+%28EASY%29&desc=There+you+go%2C+a+function+that+will+generate+a+QR+Code+with+the+help+of+a+function+hosted+on+the+Google+API+servor.+function+generate_qr%28%24url%2C+%24size+%3D%27150%27%2C+%24imgsize+%3D+false%2C+%24EC_level%3D%27L%27%2C+%24margin%3D%270%27%29+%7B+%24url+%3D+urlencode%28%24url%29%3B+return+%27%27%3B+%7D+You+call+it+like+this%3A+And+get+something+like+this%3A+Try&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>There you go, a function that will generate a QR Code with the help of a function hosted on the Google API servor.</p>
<pre class="brush: php">function generate_qr($url, $size =&#039;150&#039;, $imgsize = false, $EC_level=&#039;L&#039;, $margin=&#039;0&#039;) {
    $url = urlencode($url);
    return &#039;&lt;img src=&quot;http://chart.apis.google.com/chart?chs=&#039;.$size.&#039;x&#039;.$size.&amp;cht=qr&amp;chld=&#039;.$EC_level.&#039;|&#039;.$margin.&#039;&amp;chl=&#039;.$url.&#039;&quot; alt=&quot;QR code&quot; width=&quot;&#039;.($imgsize ? $imgsize : $size).&#039;&quot; height=&quot;&#039;.($imgsize ? $imgsize : $size).&#039;&quot; /&gt;&#039;;
}</pre>
<p>You call it like this: </p>
<pre class="brush: php">&lt;?php echo generate_qr(&#039;http://blog.zurka.us&#039;); ?&gt;</pre>
<p>And get something like this:</p>
<p><img src="http://chart.apis.google.com/chart?chs=150x150&#038;cht=qr&#038;chld=L|0&#038;chl=http://blog.zurka.us" alt="blog.zurka.us qr code" /></p>
<p>Try pointing your favorite <a href="http://www.qrme.co.uk/qr-code-resources/qr-code-readers.html">code reader</a> at it!</p>
<p>PS: I just noticed that it doesn&#8217;t work well because of the dark background, <a href="http://chart.apis.google.com/chart?chs=150x150&#038;cht=qr&#038;chld=L|0&#038;chl=http://blog.zurka.us">try it here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/generate-qr-codes-with-php-easy/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
