<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Easy Ajax Album 1.0.beta-1</title>
	<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/</link>
	<description>Sharing useful things with the world.</description>
	<pubDate>Thu, 24 Jul 2008 09:37:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Anton</title>
		<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22883</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Mon, 22 Oct 2007 21:56:07 +0000</pubDate>
		<guid>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22883</guid>
		<description>&lt;p&gt;no replace required!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>no replace required!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22882</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Mon, 22 Oct 2007 21:54:35 +0000</pubDate>
		<guid>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22882</guid>
		<description>&lt;p&gt;ok, last try to submit the content:&lt;/p&gt;

&lt;p&gt;&#60;?php&lt;/p&gt;

&lt;p&gt;phpinfo();&lt;/p&gt;

&lt;p&gt;?&#62;&lt;/p&gt;

&lt;p&gt;replace &#60; with &lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>ok, last try to submit the content:</p>

<p>&lt;?php</p>

<p>phpinfo();</p>

<p>?&gt;</p>

<p>replace &lt; with </p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22881</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Mon, 22 Oct 2007 21:52:23 +0000</pubDate>
		<guid>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22881</guid>
		<description>&lt;p&gt;[code]&lt;/p&gt;

&lt;p&gt;[/code]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[code]</p>

<p>[/code]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22880</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Mon, 22 Oct 2007 21:49:31 +0000</pubDate>
		<guid>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22880</guid>
		<description>&lt;p&gt;Requirements for â€œexif data displayâ€ = php with exif support enabled&lt;/p&gt;

&lt;p&gt;Don't know the php extensions on your host? Upload a small file (i.e. save as phpinfo.php) with content:&lt;/p&gt;

&lt;p&gt;to your host and call it via http://yourserver/phpinfo.php&lt;/p&gt;

&lt;p&gt;Delete it after use (server security)!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Requirements for â€œexif data displayâ€ = php with exif support enabled</p>

<p>Don&#8217;t know the php extensions on your host? Upload a small file (i.e. save as phpinfo.php) with content:</p>

<p>to your host and call it via <a href="http://yourserver/phpinfo.php" rel="nofollow">http://yourserver/phpinfo.php</a></p>

<p>Delete it after use (server security)!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: GLart</title>
		<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22813</link>
		<dc:creator>GLart</dc:creator>
		<pubDate>Sat, 20 Oct 2007 14:18:00 +0000</pubDate>
		<guid>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22813</guid>
		<description>&lt;p&gt;Very nice. Only a question. Can i but a backround music ?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very nice. Only a question. Can i but a backround music ?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22604</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 04 Oct 2007 05:33:11 +0000</pubDate>
		<guid>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22604</guid>
		<description>&lt;p&gt;Great work on the script, the drop-and-go-ness is pretty awesome.  I found one thing very annoying, and that was I wanted the newest albums to show up at the top.  So, I re-worked the directory reading so that the album directories are in order by timestamp, instead of whatever order the readdir decides to use.  Here's my changes... replace the "read_contents" function with this code (disclaimer: I'm no PHP expert, so there may be a &lt;em&gt;better&lt;/em&gt; way to do this):&lt;/p&gt;

&lt;p&gt;/** For sorting the array of directories by timestamp */
  function dateSort($a, $b)
  {
    if ($a[1] == $b[1])
      return 0;
    return ($a[1] &#62; $b[1]) ? -1 : 1;
  }&lt;/p&gt;

&lt;p&gt;/** Returns a sorted list of imadateSortges in $dirname. */
  function read&lt;em&gt;contents($dirname='.')
  {
    $imagefiles=array();
    $directories=array();
    $temp&lt;/em&gt;directories=array();
    if($handle=opendir($dirname))
    {
      while($fname=readdir($handle))
      {
        $fpath=$dirname.'/'.$fname;
        if(is&lt;em&gt;dir($fpath) &#38;&#38; is&lt;/em&gt;writeable($fpath))
        {
          if(preg&lt;em&gt;match('/^[^.&lt;/em&gt;]/',$fname)) // ignore the &lt;em&gt;exa and any hidden directories 
              $temp&lt;/em&gt;directories[] = array($fname, filemtime($fname));
        }
        elseif($mime=image&lt;em&gt;mime($fpath))
        {
          $im=new ImageFile($fpath,$mime);
          //$imagefiles[$fname]=new ImageFile($dirname.'/'.$fname,$mime);
          $imagefiles[sprintf('%012d&lt;/em&gt;%s',$im-&#62;date&lt;em&gt;time(),$fname)]=$im;
        }
      } // end while
      closedir($handle);
      ksort($imagefiles);
    }
    usort($temp&lt;/em&gt;directories, array($this, "dateSort"));
    foreach ($temp&lt;em&gt;directories as $directory)
        $directories[] = $directory[0];
    return array($directories,array&lt;/em&gt;values($imagefiles));
  }&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great work on the script, the drop-and-go-ness is pretty awesome.  I found one thing very annoying, and that was I wanted the newest albums to show up at the top.  So, I re-worked the directory reading so that the album directories are in order by timestamp, instead of whatever order the readdir decides to use.  Here&#8217;s my changes&#8230; replace the &#8220;read_contents&#8221; function with this code (disclaimer: I&#8217;m no PHP expert, so there may be a <em>better</em> way to do this):</p>

<p>/** For sorting the array of directories by timestamp */
  function dateSort($a, $b)
  {
    if ($a[1] == $b[1])
      return 0;
    return ($a[1] &gt; $b[1]) ? -1 : 1;
  }</p>

<p>/** Returns a sorted list of imadateSortges in $dirname. */
  function read<em>contents($dirname=&#8217;.')
  {
    $imagefiles=array();
    $directories=array();
    $temp</em>directories=array();
    if($handle=opendir($dirname))
    {
      while($fname=readdir($handle))
      {
        $fpath=$dirname.&#8217;/&#8217;.$fname;
        if(is<em>dir($fpath) &amp;&amp; is</em>writeable($fpath))
        {
          if(preg<em>match(&#8217;/^[^.</em>]/&#8217;,$fname)) // ignore the <em>exa and any hidden directories 
              $temp</em>directories[] = array($fname, filemtime($fname));
        }
        elseif($mime=image<em>mime($fpath))
        {
          $im=new ImageFile($fpath,$mime);
          //$imagefiles[$fname]=new ImageFile($dirname.&#8217;/&#8217;.$fname,$mime);
          $imagefiles[sprintf(&#8217;%012d</em>%s&#8217;,$im-&gt;date<em>time(),$fname)]=$im;
        }
      } // end while
      closedir($handle);
      ksort($imagefiles);
    }
    usort($temp</em>directories, array($this, &#8220;dateSort&#8221;));
    foreach ($temp<em>directories as $directory)
        $directories[] = $directory[0];
    return array($directories,array</em>values($imagefiles));
  }</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Lasseter</title>
		<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22322</link>
		<dc:creator>Brian Lasseter</dc:creator>
		<pubDate>Tue, 18 Sep 2007 20:59:13 +0000</pubDate>
		<guid>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-22322</guid>
		<description>&lt;p&gt;This is a super cool script... I've been looking for some sort of easy gallery thing for a long time.&lt;/p&gt;

&lt;p&gt;You rock my world.   :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is a super cool script&#8230; I&#8217;ve been looking for some sort of easy gallery thing for a long time.</p>

<p>You rock my world.   :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: omers</title>
		<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-21820</link>
		<dc:creator>omers</dc:creator>
		<pubDate>Sun, 26 Aug 2007 13:11:02 +0000</pubDate>
		<guid>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-21820</guid>
		<description>&lt;p&gt;Thanks! Cool script. Its also easy to use and install. I want to create user accounts.  But how can I add permission system? Or is there anyother good script like this one but have account system?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks! Cool script. Its also easy to use and install. I want to create user accounts.  But how can I add permission system? Or is there anyother good script like this one but have account system?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Amanda</title>
		<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-21265</link>
		<dc:creator>Amanda</dc:creator>
		<pubDate>Wed, 01 Aug 2007 18:48:16 +0000</pubDate>
		<guid>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-21265</guid>
		<description>&lt;p&gt;Thanks for the cool script.  Just wanted to let you know I ran into a problem with it this morning.  I have about 300 pictures in a folder (some of them are pretty large) and the index.php page started throwing this memory error:  "Fatal error: Allowed memory size of 8388608 bytes exhausted "  I fixed it by adding "ini&lt;em&gt;set("memory&lt;/em&gt;limit","24M");" to the top of the index.php script.  but that's probably not a great permanent solution.  Have you seen this before?  Do you have any other suggestions?&lt;/p&gt;

&lt;p&gt;Thanks,
Amanda&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the cool script.  Just wanted to let you know I ran into a problem with it this morning.  I have about 300 pictures in a folder (some of them are pretty large) and the index.php page started throwing this memory error:  &#8220;Fatal error: Allowed memory size of 8388608 bytes exhausted &#8221;  I fixed it by adding &#8220;ini<em>set(&#8221;memory</em>limit&#8221;,&#8221;24M&#8221;);&#8221; to the top of the index.php script.  but that&#8217;s probably not a great permanent solution.  Have you seen this before?  Do you have any other suggestions?</p>

<p>Thanks,
Amanda</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-19377</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Mon, 25 Jun 2007 09:57:19 +0000</pubDate>
		<guid>http://blog.firetree.net/2007/04/04/easy-ajax-album-10beta-1/#comment-19377</guid>
		<description>&lt;p&gt;Very nice :-)&lt;/p&gt;

&lt;p&gt;But how I get "exif data display" to work? Requirements?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very nice :-)</p>

<p>But how I get &#8220;exif data display&#8221; to work? Requirements?</p>]]></content:encoded>
	</item>
</channel>
</rss>
