<?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: Reading directories in sequence in PHP</title>
	<atom:link href="http://www.lateralcode.com/reading-directories-in-sequence-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lateralcode.com/reading-directories-in-sequence-in-php/</link>
	<description>A Web Development Blog Focused on Code and Technology</description>
	<lastBuildDate>Thu, 07 Jul 2011 20:22:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Ade_D</title>
		<link>http://www.lateralcode.com/reading-directories-in-sequence-in-php/#comment-33606</link>
		<dc:creator>Ade_D</dc:creator>
		<pubDate>Sun, 03 Jul 2011 20:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=741#comment-33606</guid>
		<description>Hi,
FANTASTIC set of tutorials - cheers!
I can&#039;t get my directory reading in sequence *and* pagination working (form your other post).

Any ideas??</description>
		<content:encoded><![CDATA[<p>Hi,<br />
FANTASTIC set of tutorials &#8211; cheers!<br />
I can&#8217;t get my directory reading in sequence *and* pagination working (form your other post).</p>
<p>Any ideas??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sadique PK</title>
		<link>http://www.lateralcode.com/reading-directories-in-sequence-in-php/#comment-30741</link>
		<dc:creator>Sadique PK</dc:creator>
		<pubDate>Mon, 13 Jun 2011 17:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=741#comment-30741</guid>
		<description>Great.. Thanks.... I was struggling for a day...</description>
		<content:encoded><![CDATA[<p>Great.. Thanks&#8230;. I was struggling for a day&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iskandar Reza</title>
		<link>http://www.lateralcode.com/reading-directories-in-sequence-in-php/#comment-16535</link>
		<dc:creator>Iskandar Reza</dc:creator>
		<pubDate>Fri, 18 Feb 2011 20:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=741#comment-16535</guid>
		<description>It&#039;s quite simple actually. I&#039;m no guru but I placed the code exactly as he described. 

In his previous post, he posted :

# SETTINGS
	$max_width = 100;
	$max_height = 100;

	function getPictures() {
		global $max_width, $max_height;
		if ( $handle = opendir(&quot;.&quot;) ) {
			$lightbox = rand();
			echo &#039;&#039;;
			while ( ($file = readdir($handle)) !== false ) {
				if ( !is_dir($file) ) {
					$split = explode(&#039;.&#039;, $file);  ///and so on

What id did was insert this snippet of his code on this post:

{
			$files[] = $file;
		}
		sort($files);
		foreach ( $files as $file ) 

After this point in the original code: 

	function getPictures() {
		global $max_width, $max_height;
		if ( $handle = opendir(&quot;.&quot;) ) {
			$lightbox = rand();
			echo &#039;&#039;;
			while ( ($file = readdir($handle)) !== false 


before the:

{
				if ( !is_dir($file) ) {
					$split = explode(&#039;.&#039;, $file);  ///and so on


Works like a charm! Thank you Patrick!</description>
		<content:encoded><![CDATA[<p>It&#8217;s quite simple actually. I&#8217;m no guru but I placed the code exactly as he described. </p>
<p>In his previous post, he posted :</p>
<p># SETTINGS<br />
	$max_width = 100;<br />
	$max_height = 100;</p>
<p>	function getPictures() {<br />
		global $max_width, $max_height;<br />
		if ( $handle = opendir(&#8220;.&#8221;) ) {<br />
			$lightbox = rand();<br />
			echo &#8221;;<br />
			while ( ($file = readdir($handle)) !== false ) {<br />
				if ( !is_dir($file) ) {<br />
					$split = explode(&#8216;.&#8217;, $file);  ///and so on</p>
<p>What id did was insert this snippet of his code on this post:</p>
<p>{<br />
			$files[] = $file;<br />
		}<br />
		sort($files);<br />
		foreach ( $files as $file ) </p>
<p>After this point in the original code: </p>
<p>	function getPictures() {<br />
		global $max_width, $max_height;<br />
		if ( $handle = opendir(&#8220;.&#8221;) ) {<br />
			$lightbox = rand();<br />
			echo &#8221;;<br />
			while ( ($file = readdir($handle)) !== false </p>
<p>before the:</p>
<p>{<br />
				if ( !is_dir($file) ) {<br />
					$split = explode(&#8216;.&#8217;, $file);  ///and so on</p>
<p>Works like a charm! Thank you Patrick!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ida</title>
		<link>http://www.lateralcode.com/reading-directories-in-sequence-in-php/#comment-1036</link>
		<dc:creator>Ida</dc:creator>
		<pubDate>Mon, 22 Mar 2010 22:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=741#comment-1036</guid>
		<description>Yes, I agree with Haradeep. I find this really difficult because I&#039;m not very familiar with PHP and I don&#039;t really know where to insert the code so it works with everything else. When I tried it just failed alltogether. But if you could post the gallery index.php with the sorting included, or just explain where in the code it can be added, it would be really great. And thank for a very neat PHP gallery. :)</description>
		<content:encoded><![CDATA[<p>Yes, I agree with Haradeep. I find this really difficult because I&#8217;m not very familiar with PHP and I don&#8217;t really know where to insert the code so it works with everything else. When I tried it just failed alltogether. But if you could post the gallery index.php with the sorting included, or just explain where in the code it can be added, it would be really great. And thank for a very neat PHP gallery. <img src='http://www.lateralcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haradeep</title>
		<link>http://www.lateralcode.com/reading-directories-in-sequence-in-php/#comment-904</link>
		<dc:creator>Haradeep</dc:creator>
		<pubDate>Sun, 06 Dec 2009 19:07:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=741#comment-904</guid>
		<description>Hi, I tried it. I failed many many times to sort my images. Your concept is correct, but I failed. Can you please add complete code of index.php using these please.</description>
		<content:encoded><![CDATA[<p>Hi, I tried it. I failed many many times to sort my images. Your concept is correct, but I failed. Can you please add complete code of index.php using these please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kab</title>
		<link>http://www.lateralcode.com/reading-directories-in-sequence-in-php/#comment-407</link>
		<dc:creator>kab</dc:creator>
		<pubDate>Fri, 27 Mar 2009 15:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=741#comment-407</guid>
		<description>Hey Patrick, that&#039;s great. I will try it as soon as I can can.</description>
		<content:encoded><![CDATA[<p>Hey Patrick, that&#8217;s great. I will try it as soon as I can can.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

