<?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; Whatever</title>
	<atom:link href="http://blog.zurka.us/category/gluposti/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zurka.us</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 02 Aug 2011 17:22:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Google+ invites and blahblah</title>
		<link>http://blog.zurka.us/google-invites-and-blahblah/</link>
		<comments>http://blog.zurka.us/google-invites-and-blahblah/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 13:38:12 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Whatever]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=1134</guid>
		<description><![CDATA[So, hello again! After a long time here comes another post on this lonely blog, and I kind of thought about rere(re)*re-starting to write more regularly, maybe complain about the world, so I don&#8217;t bother people that don&#8217;t care directly and give the chance to comment my thoughts to other haters like me. Or something. [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<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%253A%252F%252Fblog.zurka.us%252Fgoogle-invites-and-blahblah%252F&title=Google%2B+invites+and+blahblah&desc=So%2C+hello+again%21%0D%0A%0D%0AAfter+a+long+time+here+comes+another+post+on+this+lonely+blog%2C+and+I+kind+of+thought+about+rere%28re%29%2Are-starting+to+write+more+regularly%2C+maybe+complain+about+the+world%2C+so+I+don%27t+&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>So, hello again!</p>
<p>After a long time here comes another post on this lonely blog, and I kind of thought about rere(re)*re-starting to write more regularly, maybe complain about the world, so I don&#8217;t bother people that don&#8217;t care directly and give the chance to comment my thoughts to other haters like me. Or something. I think I am becoming stupid and don&#8217;t know how to write in English any more so excuse me for my mistakes.</p>
<p>And maybe it is time for a redesign and a separate domain as I see some of the posts are still being read quite a lot and maybe it would help grabbing a nice name somehow related to me or something. Maybe my name + surname to show off a little bit? Why am I still writing this?</p>
<p>Anyway, as the post title is suggesting <a href="http://gplus.to/rudikovac" target="_blank">I am on G+</a> and can invite you, in case you still didn&#8217;t manage to join us 31337 h4x9rz (it is still closed right? I don&#8217;t even know that). <em>Post a comment or send me an email (via the about.me page) with your mail so I can invite you.</em></p>
<p>So that was it for now, I could write something about Windows 8 or my new Samsung Omnia 7 (running the beta Windows 7.5 Mango release) but I guess I will do it tomorrow.</p>
<p>Have a great day!</p>
<p>PS: feel free to check my <a href="http://about.me/nasal" target="_blank">about.me</a> page. It is kind of lame but who cares right? I am lame.<br />
PPS: happy wifi day! (8.02.11 for American date style)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/google-invites-and-blahblah/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lockerz.com invites</title>
		<link>http://blog.zurka.us/lockerz-com-invites/</link>
		<comments>http://blog.zurka.us/lockerz-com-invites/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 10:35:36 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[invite]]></category>
		<category><![CDATA[lockerz]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=1070</guid>
		<description><![CDATA[Anybody wants a lockerz.com invitation? Leave a Comment!]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<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%253A%252F%252Fblog.zurka.us%252Flockerz-com-invites%252F&title=Lockerz.com+invites&desc=Anybody+wants+a+lockerz.com+invitation%3F%0D%0A%0D%0ALeave+a+Comment%21&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>Anybody wants a lockerz.com invitation?</p>
<p>Leave a Comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/lockerz-com-invites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Michael Jackson is ALIVE!</title>
		<link>http://blog.zurka.us/michael-jackson-is-alive/</link>
		<comments>http://blog.zurka.us/michael-jackson-is-alive/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 19:24:00 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[michael jackson]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/michael-jackson-is-alive/</guid>
		<description><![CDATA[Ninjas got LEGIT video showing he&#8217;s really alive. Keep the poor man resting in peace, damn.]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<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%253A%252F%252Fblog.zurka.us%252Fmichael-jackson-is-alive%252F&title=Michael+Jackson+is+ALIVE%21&desc=Ninjas+got+LEGIT+video+showing+he%27s+really+alive.%0A%0A%0A%0AKeep+the+poor+man+resting+in+peace%2C+damn.&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>Ninjas got LEGIT video showing he&#8217;s really alive.</p>
<p><object width="450" height="370"><param name="movie" value="http://www.liveleak.com/e/27b_1251609827"></param><param name="wmode" value="transparent"></param><embed src="http://www.liveleak.com/e/27b_1251609827" type="application/x-shockwave-flash" wmode="transparent" width="450" height="370"></embed></object></p>
<p>Keep the poor man resting in peace, damn.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/michael-jackson-is-alive/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Make Your Titles Dynamic with PHP</title>
		<link>http://blog.zurka.us/make-your-titles-dynamic-with-php/</link>
		<comments>http://blog.zurka.us/make-your-titles-dynamic-with-php/#comments</comments>
		<pubDate>Tue, 26 May 2009 15:25:00 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=938</guid>
		<description><![CDATA[When developing your website, if you want to rank well in search engines it is crucial that you use different titles for every sub-page you&#8217;ve got online. This is because these search engines (Google, MSN etc) love your titles and categorize your site based on them. This is good for SEO. This is a simple [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<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%253A%252F%252Fblog.zurka.us%252Fmake-your-titles-dynamic-with-php%252F&title=Make+Your+Titles+Dynamic+with+PHP&desc=When+developing+your+website%2C+if+you+want+to+rank+well+in+search+engines+it+is+crucial+that+you+use+different+titles+for+every+sub-page+you%27ve+got+online.+This+is+because+these+search+engines+%28Google%2C&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>When developing your website, if you want to <strong>rank well</strong> in search engines it is crucial that you use <strong>different titles for every sub-page</strong> you&#8217;ve got online. This is because these search engines (Google, MSN etc) <strong>love your titles</strong> and categorize your site based on them. This is <strong>good for SEO</strong>.</p>
<p>This is a simple thing to accomplish using PHP but it really is very effective. I will put dumb text into them but you should use titles rich with keywords related to your niche.</p>
<pre class="brush: php">
$title = &#039;Welcome to our website!&#039;;
if (key($_REQUEST) == &#039;register&#039;) { $title = &#039;Register now&#039;; }
if (key($_REQUEST) == &#039;404&#039;) { $title = &#039;Error 404: The page is unavailable&#039;; }
if (key($_REQUEST) == &#039;about&#039;) { $title = &#039;Who we are, what we do&#039;; }
if (key($_REQUEST) == &#039;news&#039;) { $title = &#039;Recent news&#039;; }
</pre>
<p>This would work if you are using urls like yoursite.com/?register, ?news etc. What it does is set a variable <strong>$title</strong> which will include the text your define according to the page we are watching. Now we need to display it in our browser.</p>
<pre class="brush: html">
&lt;head&gt;
    &lt;title&gt;&lt;?= $title; ?&gt; - Your Company Name&lt;/title&gt;
&lt;/head&gt;
</pre>
<p>Pretty easy, isn&#8217;t it?</p>
<p>Oh and today I&#8217;ve found a <a href="http://waka.us/nvyzbr"><strong>FREE</strong> product</a> that helps you make some money with google, all you have to pay is less then $3 for shipping and handling and they mail it to you. The offer is only valid for the US though. <a href="http://waka.us/nvyzbr">Click here</a> if you are interested. It can do no harm if you&#8217;re serious about making some money online and $3 really isn&#8217;t something you could not afford!</p>
<p>Have swing!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/make-your-titles-dynamic-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Use PHP to Fetch an Album Artwork From Amazon</title>
		<link>http://blog.zurka.us/use-php-fetch-artwork-cd-from-amazon/</link>
		<comments>http://blog.zurka.us/use-php-fetch-artwork-cd-from-amazon/#comments</comments>
		<pubDate>Sun, 17 May 2009 22:59:16 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=930</guid>
		<description><![CDATA[It&#8217;s actually pretty easy once you find out how to do it. By having the artist and album name you can fetch the album artwork from Amazon in three different sizes. With php5 it&#8217;s very easy since it has an integrated xml parser. All we have to do is this: $url = simplexml_load_file(&#039;http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&#38;AWSAccessKeyId=12DR2PGAQT303YTEWP02&#38;Operation=ItemSearch&#38;SearchIndex=Music&#38;Artist=ARTIST&#38;ResponseGroup=Images&#38;Keywords=ALBUMNAME&#039;); Please note [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<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%253A%252F%252Fblog.zurka.us%252Fuse-php-fetch-artwork-cd-from-amazon%252F&title=Use+PHP+to+Fetch+an+Album+Artwork+From+Amazon&desc=It%27s+actually+pretty+easy+once+you+find+out+how+to+do+it.+By+having+the+artist+and+album+name+you+can+fetch+the+album+artwork+from+Amazon+in+three+different+sizes.%0A%0AWith+php5+it%27s+very+easy+since+it+h&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>It&#8217;s actually pretty easy once you find out how to do it. By having the artist and album name you can fetch the album artwork from Amazon in three different sizes.</p>
<p>With <strong>php5</strong> it&#8217;s very easy since it has an integrated xml parser. All we have to do is this:<br />
<span id="more-930"></span></p>
<pre class="brush: php">$url = simplexml_load_file(&#039;http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&amp;AWSAccessKeyId=12DR2PGAQT303YTEWP02&amp;Operation=ItemSearch&amp;SearchIndex=Music&amp;Artist=ARTIST&amp;ResponseGroup=Images&amp;Keywords=ALBUMNAME&#039;);</pre>
<p>Please note that in the url I&#8217;ve put <strong>ARTIST</strong> and <strong>ALBUMNAME</strong>, which you should <strong>replace</strong> with what you&#8217;re searching for. Doing so, we get an xml file from which we can display the image like this:</p>
<pre class="brush: php">echo &#039;&lt;img src=&quot;&#039; . $url-&gt;Items-&gt;Item[0]-&gt;LargeImage-&gt;URL . &#039;&quot; /&gt;&#039;;</pre>
<p>If we want the large one, that is. If we would like the medium one we would use MediumImage and SmallImage for the small one.</p>
<p>That&#8217;s it, it&#8217;s very useful if you are organizing your mp3 files or maybe building an online community or something.</p>
<p>Hope it helps somebody! If you find it useful, digg it!</p>
<p><em>ps: I forgot to mention that if you are using php4 this wont work, you will have to use another <a href="http://www.google.com/search?q=php4+xml+parser">xml parser</a> to fetch the image location from the xml provided by Amazon.</em></p>
<p>Have swing!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/use-php-fetch-artwork-cd-from-amazon/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>MSG Plus! Live 4.80.356</title>
		<link>http://blog.zurka.us/msg-plus-live-480356/</link>
		<comments>http://blog.zurka.us/msg-plus-live-480356/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 00:18:01 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[messenger]]></category>
		<category><![CDATA[msg plus]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[plus]]></category>
		<category><![CDATA[windows live messenger]]></category>
		<category><![CDATA[WLM]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=846</guid>
		<description><![CDATA[The new Plus! edition, fully compatible with Windows Live Messenger 2009, is finally out! This version includes more than 500 updates and most of them (as I noticed) in the skin section of the addon. Go on and download it, it rocks. Download &#124; Changelog]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<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%253A%252F%252Fblog.zurka.us%252Fmsg-plus-live-480356%252F&title=MSG+Plus%21+Live+4.80.356&desc=The+new+Plus%21+edition%2C+fully+compatible+with+Windows+Live+Messenger+2009%2C+is+finally+out%21%0A%0AThis+version+includes+more+than+500+updates+and+most+of+them+%28as+I+noticed%29+in+the+skin+section+of+the+addon.&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>The new Plus! edition, fully compatible with Windows Live Messenger 2009, is finally out!</p>
<p>This version includes more than 500 updates and most of them (as I noticed) in the skin section of the addon.</p>
<p>Go on and download it, it rocks.</p>
<p><a href="http://www.msgpluslive.net/download/">Download</a> | <a href="http://www.msgpluslive.net/download/changelog/">Changelog</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/msg-plus-live-480356/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use PHP To Display Page Content (LMAWT part 2)</title>
		<link>http://blog.zurka.us/use-php-to-display-page-content-lmawt-part-2/</link>
		<comments>http://blog.zurka.us/use-php-to-display-page-content-lmawt-part-2/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 15:27:16 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=826</guid>
		<description><![CDATA[If you missed the previous posts, you can read the Introduction and First part to catch with us. What we are going to do today is make our links work and display the content depending on what link we click. First let&#8217;s make our links go live. In our final result of part 1, our [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<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%253A%252F%252Fblog.zurka.us%252Fuse-php-to-display-page-content-lmawt-part-2%252F&title=Use+PHP+To+Display+Page+Content+%28LMAWT+part+2%29&desc=If+you+missed+the+previous+posts%2C+you+can+read+the+Introduction+and+First+part+to+catch+with+us.%0A%0AWhat+we+are+going+to+do+today+is+make+our+links+work+and+display+the+content+depending+on+what+link+we&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>If you missed the previous posts, you can read the <a href="http://blog.zurka.us/lets-make-a-website-together/">Introduction</a> and <a href="http://blog.zurka.us/lets-make-a-website-together/">First part</a> to catch with us.</p>
<p>What we are going to do today is <strong>make our links work</strong> and display the content depending on what link we click.</p>
<p>First let&#8217;s make our links go live. In our <a href="http://blog.zurka.us/wp-content/uploads/2009/01/index41.html">final result</a> of part 1, our links were dead. To make a link work, we must use this syntax:</p>
<pre class="brush: html">
&lt;a href=&quot;./&quot;&gt;Home&lt;/a&gt;
&lt;a href=&quot;./?news&quot;&gt;News&lt;/a&gt;
&lt;a href=&quot;./?contact&quot;&gt;Contact&lt;/a&gt;
*** notice we use ?news for the news, ?contact for the contact page etc, will be explained later ***
</pre>
<p>So let&#8217;s change all of our links to this. Our final result will be <a href="http://blog.zurka.us/wp-content/uploads/2009/01/index51.html">this</a>. As you can see, the links are underlined and you can click on them. But if you click on them you will notice nothing really changes on the page, except for the URL in the browser.. that&#8217;s because we need our PHP code that will &#8220;read&#8221; the URL and display the content that comes along.</p>
<p>Let&#8217;s see the PHP code that we put into our <strong>#main-content</strong> div. To load different contents depending on what click we link on, we are going to use the <a href="http://php.net/switch" target="_blank">switch</a> function, which is not hard to understand, is very useful and works fast!</p>
<pre class="brush: php">
&lt;?php
switch (key($_REQUEST)) {

	case &#039;news&#039;:
		echo &#039;We will display our news here&#039;;
	break;

	case &#039;members&#039;:
		echo &#039;This will be the member list&#039;;
	break;

	// we continue like this for all our links
	// and finish with the default statement

	default:
	echo &#039;Welcome to my first website&#039;;

}
?&gt;
</pre>
<p>As I said before, put this code between inside your #main-content DIV.</p>
<p>&lt;div id=&#8221;main-content&#8221;&gt;<br />
&lt;?php switch () {} ?&gt;<br />
&lt;/div&gt;</p>
<p><strong>What will this piece of code do?</strong><br />
It will display different contents based on the page we are on. If, for example, we will click on our &#8220;news&#8221; link, the URL will change to &#8220;domain.com/?<strong>news</strong>&#8221; and the content that will be shown will be &#8220;<strong>news.php</strong>&#8220;, because of the &#8216;case&#8217; we wrote. In this case, what comes after the question mark in the URL is called a &#8220;query string&#8221; and we will work with these.</p>
<p>In this example we are using the &#8220;key($_REQUEST)&#8221; but we could change this to react to something like &#8220;domain.com/?page=news&#8221; and in this case we would use a different switch. Tell me if you want to know about it and I&#8217;ll write an example for this.</p>
<p>Anyway, check what we <a href="http://blog.zurka.us/wp-content/uploads/2009/01/page1.php">accomplished</a> now. We made our first working website, we could actually put whatever we would like inside, we are done. The content is changing and everything is working fine.</p>
<p>Any questions? Feel free to ask!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/use-php-to-display-page-content-lmawt-part-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Crazy American marines :))</title>
		<link>http://blog.zurka.us/crazy-american-marines/</link>
		<comments>http://blog.zurka.us/crazy-american-marines/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 00:47:51 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=636</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<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%253A%252F%252Fblog.zurka.us%252Fcrazy-american-marines%252F&title=Crazy+American+marines+%3A%29%29&desc=0&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><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/DqaWdkdFb3Y&#038;hl=en&#038;fs=1&#038;color1=0x3a3a3a&#038;color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DqaWdkdFb3Y&#038;hl=en&#038;fs=1&#038;color1=0x3a3a3a&#038;color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/crazy-american-marines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create an Alexa Widget for your site</title>
		<link>http://blog.zurka.us/create-an-alexa-widget-for-your-site/</link>
		<comments>http://blog.zurka.us/create-an-alexa-widget-for-your-site/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 11:13:50 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=684</guid>
		<description><![CDATA[It is actually very easy: Visit the Alexa Developer&#8217;s Corner Select the widget that you like the most and write your site url into the field Copy the code snippet they give you Paste it into your website Do you use the Alexa Widget on your site?]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<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%253A%252F%252Fblog.zurka.us%252Fcreate-an-alexa-widget-for-your-site%252F&title=Create+an+Alexa+Widget+for+your+site&desc=It+is+actually+very+easy%3A%0A%0A%0A%09Visit+the+Alexa+Developer%27s+Corner%0A%09Select+the+widget+that+you+like+the+most+and+write+your+site+url+into+the+field%0A%09Copy+the+code+snippet+they+give+you%0A%09Paste+it+into+you&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>It is actually very easy:</p>
<ol>
<li>Visit <a href="http://www.alexa.com/site/site_stats/signup">the Alexa Developer&#8217;s Corner</a></li>
<li>Select the widget that you like the most and write your site url into the field</li>
<li>Copy the code snippet they give you</li>
<li>Paste it into your website</li>
</ol>
<p>Do you use the Alexa Widget on your site?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/create-an-alexa-widget-for-your-site/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vic o tašči</title>
		<link>http://blog.zurka.us/vic-o-tasci/</link>
		<comments>http://blog.zurka.us/vic-o-tasci/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 23:27:30 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Whatever]]></category>
		<category><![CDATA[tašča]]></category>
		<category><![CDATA[vic]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=508</guid>
		<description><![CDATA[Par je šel zvečer na zabavo. Pokličeta taxi, peljeta psičko ven in čakata na taxi. Psička medtem spizdi nazaj v hišo. Mož jo gre iskat, ker ni hotel da ostane zaprta v hiši cel večer. Žena gre do taksista, ki je že nestrpno čakal, da ju odpelje, ter zanj najde izgovor. &#8220;Veste, samo k moji [...]]]></description>
			<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
											<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%253A%252F%252Fblog.zurka.us%252Fvic-o-tasci%252F&title=Vic+o+ta%C5%A1%C4%8Di&desc=Par+je+%C5%A1el+zve%C4%8Der+na+zabavo.+Pokli%C4%8Deta+taxi%2C+peljeta+psi%C4%8Dko+ven+in+%C4%8Dakata+na+taxi.%0A%0APsi%C4%8Dka+medtem+spizdi+nazaj+v+hi%C5%A1o.+Mo%C5%BE+jo+gre+iskat%2C+ker+ni+hotel+da%0Aostane+zaprta+v+hi%C5%A1i+cel+ve%C4%8Der.%0A%0A%C5%BDen&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>Par je šel zvečer na zabavo. Pokličeta taxi, peljeta psičko ven in čakata na taxi.</p>
<p>Psička medtem spizdi nazaj v hišo. Mož jo gre iskat, ker ni hotel da<br />
ostane zaprta v hiši cel večer.</p>
<p>Žena gre do taksista, ki je že nestrpno čakal, da ju odpelje, ter zanj<br />
najde izgovor. &#8220;Veste, samo k moji materi se je šel še poslovit!&#8221;, je rekla.</p>
<p>Mož čez nekaj časa pride, se vsede v taksi in pravi:<br />
&#8220;Oprostite, ker je trajalo tako dolgo. Blesava kuzla se je skrila pod<br />
posteljo, pa sem jo moral dvakrat mahnt z metlo, da je prilezla ven,<br />
pol sem jo moral zavit v plašč, da me ni spraskala, ker se je upirala<br />
ko sem jo vlekel po štengah in jo privezal na dvorišču. Tako da mi ne<br />
bo spet srala po vrtu kot včeraj!&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/vic-o-tasci/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

