<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Random Images with PHP</title>
	<atom:link href="http://www.devlounge.net/code/random-images-with-php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.devlounge.net/code/random-images-with-php</link>
	<description>Design, Develop, and Grow</description>
	<lastBuildDate>Sun, 21 Mar 2010 19:46:27 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ilias</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-179990</link>
		<dc:creator>ilias</dc:creator>
		<pubDate>Mon, 13 Jul 2009 05:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-179990</guid>
		<description>i want to show 5 images in a page randomly, but one should not match the other image. is it possible? please help me.</description>
		<content:encoded><![CDATA[<p>i want to show 5 images in a page randomly, but one should not match the other image. is it possible? please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Dunbar</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-179875</link>
		<dc:creator>Jamie Dunbar</dc:creator>
		<pubDate>Thu, 02 Jul 2009 13:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-179875</guid>
		<description>Hi guys.

I want to get a random file name from a directory which i seem to have managed to do. 

it comes back as daXXXXXX.jpg

I want to then just have the XXXXXX bit, to plug into this

echo $car = new ImageObject(XXXXXX);

Any ideas?</description>
		<content:encoded><![CDATA[<p>Hi guys.</p>
<p>I want to get a random file name from a directory which i seem to have managed to do. </p>
<p>it comes back as daXXXXXX.jpg</p>
<p>I want to then just have the XXXXXX bit, to plug into this</p>
<p>echo $car = new ImageObject(XXXXXX);</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-178786</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 03 Apr 2009 23:52:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-178786</guid>
		<description>Mukesh:

Thanks for pointing that out. I was struggling to figure out if I had suddenly turned PHP-stupid, but it was just a numbering thing.</description>
		<content:encoded><![CDATA[<p>Mukesh:</p>
<p>Thanks for pointing that out. I was struggling to figure out if I had suddenly turned PHP-stupid, but it was just a numbering thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nAcho</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-142110</link>
		<dc:creator>nAcho</dc:creator>
		<pubDate>Sun, 16 Mar 2008 19:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-142110</guid>
		<description>Great and simple code. Thanks</description>
		<content:encoded><![CDATA[<p>Great and simple code. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mukesh</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-141789</link>
		<dc:creator>Mukesh</dc:creator>
		<pubDate>Thu, 21 Feb 2008 11:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-141789</guid>
		<description>the array above in the code has a little mistake.. the key 2 is missing. so, when the key 2 appears then no image is displayed.

the actual form of array should be :: 

 $images = array(
  
              0 =&gt; &#039;image1.gif&#039;,
   
              1 =&gt; &#039;image2.gif&#039;,
  
              2 =&gt; &#039;hello.gif&#039;,
   
              3 =&gt; &#039;monkeys.gif&#039;,
  
              4 =&gt; &#039;ninjas.gif&#039;,
  
          );</description>
		<content:encoded><![CDATA[<p>the array above in the code has a little mistake.. the key 2 is missing. so, when the key 2 appears then no image is displayed.</p>
<p>the actual form of array should be :: </p>
<p> $images = array(</p>
<p>              0 =&gt; &#8216;image1.gif&#8217;,</p>
<p>              1 =&gt; &#8216;image2.gif&#8217;,</p>
<p>              2 =&gt; &#8216;hello.gif&#8217;,</p>
<p>              3 =&gt; &#8216;monkeys.gif&#8217;,</p>
<p>              4 =&gt; &#8216;ninjas.gif&#8217;,</p>
<p>          );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth Holladay &#187; Links &#187; links for 2007-12-28</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-140746</link>
		<dc:creator>Seth Holladay &#187; Links &#187; links for 2007-12-28</dc:creator>
		<pubDate>Fri, 28 Dec 2007 07:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-140746</guid>
		<description>[...] Devlounge &#124; Random Images with PHP (tags: php webdesign webdev) [...]</description>
		<content:encoded><![CDATA[<p>[...] Devlounge | Random Images with PHP (tags: php webdesign webdev) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-139292</link>
		<dc:creator>Travis</dc:creator>
		<pubDate>Thu, 20 Dec 2007 22:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-139292</guid>
		<description>How could you make those images links? Say you had a store that randomly show an item. How could you make it so you could click the items picture and go to the dedicated page for that item?</description>
		<content:encoded><![CDATA[<p>How could you make those images links? Say you had a store that randomly show an item. How could you make it so you could click the items picture and go to the dedicated page for that item?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunday Weekly Roundup #17 - 12/09/2007 &#187; Blog at veanndesign.com</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-133091</link>
		<dc:creator>Sunday Weekly Roundup #17 - 12/09/2007 &#187; Blog at veanndesign.com</dc:creator>
		<pubDate>Mon, 10 Dec 2007 03:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-133091</guid>
		<description>[...] Random Images with PHP [...]</description>
		<content:encoded><![CDATA[<p>[...] Random Images with PHP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armen</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-132220</link>
		<dc:creator>Armen</dc:creator>
		<pubDate>Sat, 08 Dec 2007 12:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-132220</guid>
		<description>The randomizer script from &lt;a href=&quot;http://www.alistapart.com/articles/randomizer/&quot; rel=&quot;nofollow&quot;&gt;A List Apart&lt;/a&gt; is the easiest way of doing it, in my opinion. You don&#039;t have to alter anything, or change image file names, it just works out of the box. Which is why I&#039;m using it for my &lt;a href=&quot;http://armenthomassian.com/2007/12/06/the-bedrock-grid-wordpress-theme-for-charity/&quot; rel=&quot;nofollow&quot;&gt;Bedrock Grid WordPress theme&lt;/a&gt;.

I&#039;ll keep this in mind though, Thord.</description>
		<content:encoded><![CDATA[<p>The randomizer script from <a href="http://www.alistapart.com/articles/randomizer/" rel="nofollow">A List Apart</a> is the easiest way of doing it, in my opinion. You don&#8217;t have to alter anything, or change image file names, it just works out of the box. Which is why I&#8217;m using it for my <a href="http://armenthomassian.com/2007/12/06/the-bedrock-grid-wordpress-theme-for-charity/" rel="nofollow">Bedrock Grid WordPress theme</a>.</p>
<p>I&#8217;ll keep this in mind though, Thord.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomlovesyou &#124; Random Images With PHP</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-131810</link>
		<dc:creator>tomlovesyou &#124; Random Images With PHP</dc:creator>
		<pubDate>Fri, 07 Dec 2007 17:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-131810</guid>
		<description>[...] Lots of times when I need a piece of code like this. [...]</description>
		<content:encoded><![CDATA[<p>[...] Lots of times when I need a piece of code like this. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Griffin</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-131702</link>
		<dc:creator>Matthew Griffin</dc:creator>
		<pubDate>Fri, 07 Dec 2007 13:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-131702</guid>
		<description>Great mini-tutorial. This is something I use quite often so I know the PHP novices will be glad to snatch it up.</description>
		<content:encoded><![CDATA[<p>Great mini-tutorial. This is something I use quite often so I know the PHP novices will be glad to snatch it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ibanez182</title>
		<link>http://www.devlounge.net/code/random-images-with-php/comment-page-1#comment-131602</link>
		<dc:creator>ibanez182</dc:creator>
		<pubDate>Fri, 07 Dec 2007 08:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.devlounge.net/articles/random-images-with-php#comment-131602</guid>
		<description>I use this half line of PHP to do that. If for example the name of the
files are something like:

background_01.jpg,
background_02.jpg,
background_03.jpg
an so on…

i write:

&lt;code&gt;&lt;img src=&quot;./images/background_0&lt;?php rand(1,3) ?&gt;.jpg&quot; alt=&quot;&quot;&gt;&lt;/code&gt;

where 1 is the first image and 3 is the last.
I think it’s so easy</description>
		<content:encoded><![CDATA[<p>I use this half line of PHP to do that. If for example the name of the<br />
files are something like:</p>
<p>background_01.jpg,<br />
background_02.jpg,<br />
background_03.jpg<br />
an so on…</p>
<p>i write:</p>
<p><code>&lt;img src="./images/background_0< ?php rand(1,3) ?>.jpg" alt=""&gt;</code></p>
<p>where 1 is the first image and 3 is the last.<br />
I think it’s so easy</p>
]]></content:encoded>
	</item>
</channel>
</rss>
