<?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>Rainmaker Web Design &#187; PHP</title>
	<atom:link href="http://rainmakerwebdesign.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://rainmakerwebdesign.com</link>
	<description>Web Design &#38; Development - from Athens, GA</description>
	<lastBuildDate>Thu, 22 Dec 2011 05:38:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Design Scrapbook: PHP/jQuery Image Flipper</title>
		<link>http://rainmakerwebdesign.com/php/design-scrapbook-phpjquery-image-flipper/</link>
		<comments>http://rainmakerwebdesign.com/php/design-scrapbook-phpjquery-image-flipper/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 05:05:45 +0000</pubDate>
		<dc:creator>Wade Sonenberg</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://rainmakerwebdesign.com/?p=898</guid>
		<description><![CDATA[Design Scrapbook allows you to simply scroll through a number of images within a directory. For example, we use it to scroll through a number of screen shots of pretty web designs for design inspiration, user interfaces done by the gurus, and general designs that inspire us. It could also be of use as a [...]]]></description>
			<content:encoded><![CDATA[<p>Design Scrapbook allows you to simply scroll through a number of images within a directory.  For example, we use it to scroll through a number of screen shots of pretty web designs for design inspiration, user interfaces done by the gurus, and general designs that inspire us.  It could also be of use as a stand alone portfolio, image gallery, etc.</p>
<p style="text-align: center;"><img class="aligncenter" title="rainmakerwebdesign_com_dev_scrapbook" src="http://rainmakerwebdesign.com/wp-content/uploads/2010/11/rainmakerwebdesign_com_dev_scrapbook1-800x427.jpg" alt="" width="640" /></p>
<p>It works simply by finding all the images in a directory and allowing you to flip through them without having to reload the page.  All you have to do it upload the script, upload your images, and you&#8217;re done.</p>
<ul>
<li>Flip between screen shots, photos, or any other images.</li>
<li>No configuration what-so-ever, just upload and you&#8217;re done.</li>
<li>No database required.</li>
<li>Handles all popular image types.</li>
<li>Zoom in and zoom out.</li>
<li>Unlimited number of images.</li>
</ul>
<p>All that is required is PHP 4.3 and GD Library.</p>
<div class="demoDown"><a class="demoLink" href="http://rainmakerwebdesign.com/dev/scrapbook/" target="_blank">Demo</a> <a class="downloadLink" href="http://rainmakerwebdesign.com/dev/scrapbook/DesignScrapbook_1.zip">Download</a></div>
]]></content:encoded>
			<wfw:commentRss>http://rainmakerwebdesign.com/php/design-scrapbook-phpjquery-image-flipper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Breadcrumbs for Pages</title>
		<link>http://rainmakerwebdesign.com/uncategorized/wordpress-breadcrumb-function-for-pages/</link>
		<comments>http://rainmakerwebdesign.com/uncategorized/wordpress-breadcrumb-function-for-pages/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 19:00:59 +0000</pubDate>
		<dc:creator>Wade Sonenberg</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://rainmakerwebdesign.com/?p=775</guid>
		<description><![CDATA[Breadcrumbs are very useful navigation tools, especially for sites with multiple levels and more than a dozen pages.  While there are a few breadcrumb navigation plugins for WordPress, sometimes it&#8217;s a bit of an overkill when the job can be done with just a few lines of code. The function below will insert a breadcrumb [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-776" title="wordpress-breadcrumb-function" src="http://rainmakerwebdesign.com/wp-content/uploads/2010/09/wordpress-breadcrumb-function.jpg" alt="" width="228" height="90" />Breadcrumbs are very useful navigation tools, especially for sites with multiple levels and more than a dozen pages.  While there are a few <a href="http://wordpress.org/extend/plugins/breadcrumb-navxt/">breadcrumb navigation plugins</a> for WordPress, sometimes it&#8217;s a bit of an overkill when the job can be done with just a few lines of code.</p>
<p>The function below will insert a breadcrumb navigation for the pages in your WP site, and highlight the news/blog page when within that section, etc.</p>
<p><span style="text-decoration: underline;"><strong>Usage:</strong></span></p>
<ol>
<li>Copy the code below into your theme&#8217;s <em>functions.php</em> file.  If your theme doesn&#8217;t have one, create it.</li>
<div class="code">
<pre>//breadcrumb function
function rm_bread_crumbs() {
 global $post;
 $crumbs =     '&lt;p&gt;&lt;a href="'.get_option('home').'"&gt;Home&lt;/a&gt;';

 //if the page has a parent add title and link of parent
 if($post-&gt;post_parent) {
 $crumbs .=     ' &amp;raquo; &lt;a href="'.get_permalink($post-&gt;post_parent).'"&gt;'.get_the_title($post-&gt;post_parent).'&lt;/a&gt;';
 }

 // if it's not the front page of the site, but isn't the blog either
 if((!is_front_page()) &amp;&amp; (is_page())) {
 $crumbs .=    ' &amp;raquo; '.get_the_title($post-&gt;ID);
 }

 //if it's the news/blog home page or any type of archive
 if((is_home() ||(is_archive()))) {
 $crumbs .=    ' &amp;raquo; '.get_the_title(get_option(page_for_posts));
 }

 //if it's a single news/blog post
 if(is_single()) {
 $crumbs .=     ' &amp;raquo; &lt;a href="'.get_permalink(get_option(page_for_posts)).'"&gt;'.get_the_title(get_option(page_for_posts)).'&lt;/a&gt;';
 $crumbs .=    ' &amp;raquo; '.get_the_title($post-&gt;ID);
 }
 $crumbs .=    '&lt;/p&gt;'."\n";
 echo $crumbs;
}</pre>
</div>
<li>Insert <em>&lt;?php rm_bread_crumbs(); ?&gt;</em> in your theme where ever you&#8217;d like the bread crumbs displayed.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://rainmakerwebdesign.com/uncategorized/wordpress-breadcrumb-function-for-pages/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Keeping Your Website&#8217;s Copyright Date Current with PHP</title>
		<link>http://rainmakerwebdesign.com/php/keeping-your-websites-copyright-date-current-in-php/</link>
		<comments>http://rainmakerwebdesign.com/php/keeping-your-websites-copyright-date-current-in-php/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 04:08:18 +0000</pubDate>
		<dc:creator>Wade Sonenberg</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[web tips]]></category>

		<guid isPermaLink="false">http://rainmakerwebdesign.com/?p=609</guid>
		<description><![CDATA[Never have an outdated copyright date (displaying © 2007 in 2011) again. It&#8217;s super easy, and is only one line of code. &#38;copy; &#60;?php echo date('Y'); ?&#62; It seems it&#8217;s more prevalent around the turn of the calendar year, but why not cross it off your yearly list without even doing anything?]]></description>
			<content:encoded><![CDATA[<p>Never have an outdated copyright date (<em>displaying © 2007 in 2011</em>) again.  It&#8217;s super easy, and is only one line of code.</p>
<pre>&amp;copy; &lt;?php echo date('Y'); ?&gt;</pre>
<p>It seems it&#8217;s more prevalent around the turn of the calendar year, but why not cross it off your yearly list without even doing anything?</p>
]]></content:encoded>
			<wfw:commentRss>http://rainmakerwebdesign.com/php/keeping-your-websites-copyright-date-current-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert an ALL CAPS string to first character capitalized only in PHP</title>
		<link>http://rainmakerwebdesign.com/php/convert-an-all-caps-string-to-first-character-capitalized-only-in-ph/</link>
		<comments>http://rainmakerwebdesign.com/php/convert-an-all-caps-string-to-first-character-capitalized-only-in-ph/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 02:07:25 +0000</pubDate>
		<dc:creator>Wade Sonenberg</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://rainmakerwebdesign.com/?p=416</guid>
		<description><![CDATA[Nothing new to you php gurus, but hope this can help somebody looking for a quick fix &#8211; great to filter user inputs in things like addresses, company names, and yes regular ole names. It utilizes PHP&#8217;s ucwords() and strtolower(): &#60;? $userInput1 = "MR. CAPITAL LETTERS"; $userInput2 = "mrs. lowercase letters"; ucwords(strtolower($userInput1)); //outputs "Mr. Capital [...]]]></description>
			<content:encoded><![CDATA[<p>Nothing new to you php gurus, but hope this can help somebody looking for a quick fix &#8211; great to filter user inputs in things like addresses, company names, and yes  regular ole names. It utilizes PHP&#8217;s ucwords() and strtolower():</p>
<pre>
<div class="code">

&lt;?

$userInput1 = "MR. CAPITAL LETTERS";
$userInput2 = "mrs. lowercase letters";

ucwords(strtolower($userInput1));  //outputs "Mr. Capital Letters"
ucwords(strtolower($userInput2));  //outputs "Mrs. Lowercase Letters"

?&gt;
</div>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rainmakerwebdesign.com/php/convert-an-all-caps-string-to-first-character-capitalized-only-in-ph/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>States HTML Select List w/ PHP Selected Value</title>
		<link>http://rainmakerwebdesign.com/html/states-html-select-list-w-php-selected-value/</link>
		<comments>http://rainmakerwebdesign.com/html/states-html-select-list-w-php-selected-value/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 21:39:03 +0000</pubDate>
		<dc:creator>Wade Sonenberg</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://rainmakerwebdesign.com/?p=405</guid>
		<description><![CDATA[I always have trouble finding this, so here it is. The if statement in the checkState() function can be replaced with anything you like to select the option by default&#8230; &#60;? function checkState($state) { if ($row['state'] == $state) { echo ' selected="selected"'; } } ?&#62; &#60;select name="state" id="state"&#62; &#60;option value="--"&#60;? checkState('') ?&#62;&#62;Select...&#60;/option&#62; &#60;option value="AL"&#60;? checkState('AL'); [...]]]></description>
			<content:encoded><![CDATA[<p>I always have trouble finding this, so here it is.  The <em>if statement</em> in the checkState() function can be replaced with anything you like to select the option by default&#8230;</p>
<pre class="code">&lt;?
function checkState($state) {
  if ($row['state'] == $state) {
    echo ' selected="selected"';
  }
}
?&gt;

&lt;select name="state" id="state"&gt;
 &lt;option value="--"&lt;? checkState('') ?&gt;&gt;Select...&lt;/option&gt;
 &lt;option value="AL"&lt;? checkState('AL'); ?&gt;&gt;Alabama&lt;/option&gt;
 &lt;option value="AK"&lt;? checkState('AK'); ?&gt;&gt;Alaska&lt;/option&gt;
 &lt;option value="AZ"&lt;? checkState('AZ'); ?&gt;&gt;Arizona&lt;/option&gt;
 &lt;option value="AR"&lt;? checkState('AR'); ?&gt;&gt;Arkansas&lt;/option&gt;
 &lt;option value="CA"&lt;? checkState('CA'); ?&gt;&gt;California&lt;/option&gt;
 &lt;option value="CO"&lt;? checkState('CO'); ?&gt;&gt;Colorado&lt;/option&gt;
 &lt;option value="CT"&lt;? checkState('CT'); ?&gt;&gt;Connecticut&lt;/option&gt;
 &lt;option value="DE"&lt;? checkState('DE'); ?&gt;&gt;Delaware&lt;/option&gt;
 &lt;option value="DC"&lt;? checkState('DC'); ?&gt;&gt;District Of Columbia&lt;/option&gt;
 &lt;option value="FL"&lt;? checkState('FL'); ?&gt;&gt;Florida&lt;/option&gt;
 &lt;option value="GA"&lt;? checkState('GA'); ?&gt;&gt;Georgia&lt;/option&gt;
 &lt;option value="HI"&lt;? checkState('HI'); ?&gt;&gt;Hawaii&lt;/option&gt;
 &lt;option value="ID"&lt;? checkState('ID'); ?&gt;&gt;Idaho&lt;/option&gt;
 &lt;option value="IL"&lt;? checkState('IL'); ?&gt;&gt;Illinois&lt;/option&gt;
 &lt;option value="IN"&lt;? checkState('IN'); ?&gt;&gt;Indiana&lt;/option&gt;
 &lt;option value="IA"&lt;? checkState('IA'); ?&gt;&gt;Iowa&lt;/option&gt;
 &lt;option value="KS"&lt;? checkState('KS'); ?&gt;&gt;Kansas&lt;/option&gt;
 &lt;option value="KY"&lt;? checkState('KY'); ?&gt;&gt;Kentucky&lt;/option&gt;
 &lt;option value="LA"&lt;? checkState('LA'); ?&gt;&gt;Louisiana&lt;/option&gt;
 &lt;option value="ME"&lt;? checkState('ME'); ?&gt;&gt;Maine&lt;/option&gt;
 &lt;option value="MD"&lt;? checkState('MD'); ?&gt;&gt;Maryland&lt;/option&gt;
 &lt;option value="MA"&lt;? checkState('MA'); ?&gt;&gt;Massachusetts&lt;/option&gt;
 &lt;option value="MI"&lt;? checkState('MI'); ?&gt;&gt;Michigan&lt;/option&gt;
 &lt;option value="MN"&lt;? checkState('MN'); ?&gt;&gt;Minnesota&lt;/option&gt;
 &lt;option value="MS"&lt;? checkState('MS'); ?&gt;&gt;Mississippi&lt;/option&gt;
 &lt;option value="MO"&lt;? checkState('MO'); ?&gt;&gt;Missouri&lt;/option&gt;
 &lt;option value="MT"&lt;? checkState('MT'); ?&gt;&gt;Montana&lt;/option&gt;
 &lt;option value="NE"&lt;? checkState('NE'); ?&gt;&gt;Nebraska&lt;/option&gt;
 &lt;option value="NV"&lt;? checkState('NV'); ?&gt;&gt;Nevada&lt;/option&gt;
 &lt;option value="NH"&lt;? checkState('NH'); ?&gt;&gt;New Hampshire&lt;/option&gt;
 &lt;option value="NJ"&lt;? checkState('NJ'); ?&gt;&gt;New Jersey&lt;/option&gt;
 &lt;option value="NM"&lt;? checkState('NM'); ?&gt;&gt;New Mexico&lt;/option&gt;
 &lt;option value="NY"&lt;? checkState('NY'); ?&gt;&gt;New York&lt;/option&gt;
 &lt;option value="NC"&lt;? checkState('NC'); ?&gt;&gt;North Carolina&lt;/option&gt;
 &lt;option value="ND"&lt;? checkState('ND'); ?&gt;&gt;North Dakota&lt;/option&gt;
 &lt;option value="OH"&lt;? checkState('OH'); ?&gt;&gt;Ohio&lt;/option&gt;
 &lt;option value="OK"&lt;? checkState('OK'); ?&gt;&gt;Oklahoma&lt;/option&gt;
 &lt;option value="OR"&lt;? checkState('OR'); ?&gt;&gt;Oregon&lt;/option&gt;
 &lt;option value="PA"&lt;? checkState('PA'); ?&gt;&gt;Pennsylvania&lt;/option&gt;
 &lt;option value="RI"&lt;? checkState('RI'); ?&gt;&gt;Rhode Island&lt;/option&gt;
 &lt;option value="SC"&lt;? checkState('SC'); ?&gt;&gt;South Carolina&lt;/option&gt;
 &lt;option value="SD"&lt;? checkState('SD'); ?&gt;&gt;South Dakota&lt;/option&gt;
 &lt;option value="TN"&lt;? checkState('TN'); ?&gt;&gt;Tennessee&lt;/option&gt;
 &lt;option value="TX"&lt;? checkState('TX'); ?&gt;&gt;Texas&lt;/option&gt;
 &lt;option value="UT"&lt;? checkState('UT'); ?&gt;&gt;Utah&lt;/option&gt;
 &lt;option value="VT"&lt;? checkState('VT'); ?&gt;&gt;Vermont&lt;/option&gt;
 &lt;option value="VA"&lt;? checkState('VA'); ?&gt;&gt;Virginia&lt;/option&gt;
 &lt;option value="WA"&lt;? checkState('WA'); ?&gt;&gt;Washington&lt;/option&gt;
 &lt;option value="WV"&lt;? checkState('WV'); ?&gt;&gt;West Virginia&lt;/option&gt;
 &lt;option value="WI"&lt;? checkState('WI'); ?&gt;&gt;Wisconsin&lt;/option&gt;
 &lt;option value="WY"&lt;? checkState('WY'); ?&gt;&gt;Wyoming&lt;/option&gt;
&lt;/select&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rainmakerwebdesign.com/html/states-html-select-list-w-php-selected-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

