<?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>Soliciting Fame &#187; images</title>
	<atom:link href="http://solicitingfame.com/tag/images/feed/" rel="self" type="application/rss+xml" />
	<link>http://solicitingfame.com</link>
	<description>by Eric W. Warnke</description>
	<lastBuildDate>Wed, 21 Oct 2009 21:32:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Gallery Directory Image Reader</title>
		<link>http://solicitingfame.com/2008/05/25/php-gallery-directory-image-reader/</link>
		<comments>http://solicitingfame.com/2008/05/25/php-gallery-directory-image-reader/#comments</comments>
		<pubDate>Mon, 26 May 2008 00:48:26 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://solicitingfame.com/?p=115</guid>
		<description><![CDATA[I wrote a neat little script to simply read a directory, search for thumbnails, then print a list with links to the larger images. I look for the thumbnails so it doesn&#8217;t get images that don&#8217;t have small versions.
There are limitations, for example if you put a PDF with &#8216;.thumb&#8217; in the directory it will [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a neat little script to simply read a directory, search for thumbnails, then print a list with links to the larger images. I look for the thumbnails so it doesn&#8217;t get images that don&#8217;t have small versions.</p>
<p>There are limitations, for example if you put a PDF with &#8216;.thumb&#8217; in the directory it will try to link it as an image. This is ok for me because I&#8217;m controlling what goes in the directories. I suppose I could add a check for it later if I need to.</p>
<blockquote><p>&lt;?php</p>
<p>/* This little snippet takes the directory and looks for any files with &#8216;.thumb&#8217;. Then it takes out the &#8216;.thumb&#8217; to link to the big image. Then it makes a nice little list. */</p>
<p>$dir = &#8216;gallery/gallery2/&#8217;; /* Point to the right gallery directory */</p>
<p>echo &#8220;&lt;ul&gt;&#8221;;</p>
<p>if ($handle = opendir($dir)) {</p>
<p>while (false !== ($file = readdir($handle))) { /* Loop over directory */</p>
<p>if (strpos($file, &#8216;.thumb&#8217;)) { /* Look for the .thumb */</p>
<p>$filebig = str_replace(&#8217;.thumb&#8217;,&#8221;,$file);  /* Remove .thumb for our big files */</p>
<p>echo &#8220;&lt;li&gt;&lt;a href=\&#8221;$dir$filebig\&#8221; rel=\&#8221;lightbox[1]\&#8221;&gt;&lt;img src=\&#8221;$dir$file\&#8221; border=\&#8221;0\&#8221;/&gt;&lt;/a&gt;&lt;/li&gt;\n&#8221;; /* Make the list with both file names */</p>
<p>}</p>
<p>}</p>
<p>closedir($handle); /* Finish */</p>
<p>}</p>
<p>echo &#8220;&lt;/ul&gt;&#8221;</p>
<p>?&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://solicitingfame.com/2008/05/25/php-gallery-directory-image-reader/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<a href="http://www.geeksonwhyte.com/">Edmonton Computer Repair</a>