<?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>PHP Tutorials Code Snippets and Php Tips &#187; random link</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/random-link/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +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>PHP Tutorial : Random link rotator</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-random-link-rotator/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-random-link-rotator/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 12:28:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Usefull PHP]]></category>
		<category><![CDATA[link rotator]]></category>
		<category><![CDATA[php link rotator]]></category>
		<category><![CDATA[php random]]></category>
		<category><![CDATA[php tutorial]]></category>
		<category><![CDATA[random link]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=27</guid>
		<description><![CDATA[Hi, In this php tutorial you will learn how to build a random link rotator. Basically, we&#8217;ll build a php array with the links needed to rotate and then we&#8217;ll print to user the link randomly. &#60;?php $links = array("link &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-random-link-rotator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>In this php tutorial you will learn how to build a random link rotator. Basically, we&#8217;ll build a php array with the links needed to rotate and then we&#8217;ll print to user the link randomly.</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
$links <span class="phpOperator">=</span> <span class="phpFunction">array</span><span class="phpOperator">(</span><span class="phpString">"link <span class="phpNumber">1</span>"</span>, <span class="phpString">"link <span class="phpNumber">2</span>"</span>, <span class="phpString">"link <span class="phpNumber">3</span>"</span><span class="phpOperator">)</span><span class="phpText">;</span>
$max <span class="phpOperator">=</span> <span class="phpFunction">sizeof</span><span class="phpOperator">(</span>$links<span class="phpOperator">)</span><span class="phpText">;</span>
$<span class="phpFunction">rand</span> <span class="phpOperator">=</span> <span class="phpFunction">rand</span><span class="phpOperator">(</span><span class="phpNumber">0</span>, $max<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpFunction">print</span> $links<span class="phpOperator">[</span>$<span class="phpFunction">rand</span><span class="phpOperator">]</span><span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-random-link-rotator/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

