<?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>ReloadedPC Ashland, Ohio</title>
	<atom:link href="http://www.reloadedpc.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reloadedpc.com</link>
	<description>Small Business Website Development</description>
	<lastBuildDate>Wed, 01 Sep 2010 02:53:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Zencart + Free Shipping USA Shipping Module</title>
		<link>http://www.reloadedpc.com/zen-cart/zencart-free-shipping-usa-shipping-module/</link>
		<comments>http://www.reloadedpc.com/zen-cart/zencart-free-shipping-usa-shipping-module/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 19:18:36 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Zen-Cart]]></category>
		<category><![CDATA[shipping]]></category>
		<category><![CDATA[zencart]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=248</guid>
		<description><![CDATA[Many websites offer free shipping in the USA. The default shipping module for zencart does not allow a store owner to easily handle it. In the configuration of the shipping module, you set the desired country (USA) to display free shipping to, and any of the other options that are available in the standard freeshipper [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_18" class="wp-caption alignright" style="width: 156px"><a href="http://www.zen-cart.com"><img class="size-full wp-image-18 " title="zen-cart-logo" src="http://www.reloadedpc.com/wp-content/uploads/2009/07/zen-cart-logo.png" alt="Zencart + Free Shipping USA Shipping Module zen cart logo " width="146" height="40" /></a><p class="wp-caption-text">Zen-Cart</p></div>
<p>Many websites offer free shipping in the USA. The default shipping module for zencart does not allow a store owner to easily handle it. In the configuration of the shipping module, you set the desired country (USA) to display free shipping to, and any of the other options that are available in the standard freeshipper module included with zencart. The zip file contains just 2 files, the shipping total, and a english language define. Install instructions are included in the download. Very easy and fast to install.</p>
<p>You may <a href="http://bitbucket.org/pickupman/zencart-freeshipperusa">download</a> the module form bitbucket.org, or even help contribute to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/zen-cart/zencart-free-shipping-usa-shipping-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeNAS + Mercurial</title>
		<link>http://www.reloadedpc.com/other/freenas-and-mercurial/</link>
		<comments>http://www.reloadedpc.com/other/freenas-and-mercurial/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 01:45:15 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[freenas]]></category>
		<category><![CDATA[hg]]></category>
		<category><![CDATA[mercurial]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=241</guid>
		<description><![CDATA[I was recently tinkering around with Mercurial and getting my feet wet using a distributed source version control. I have been using Subversion for about the past year, and has served me well. I wanted to get involved with some of the projects hosted on Bitbucket.org in order to fork some projects.  The are a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.reloadedpc.com/wp-content/uploads/2010/08/mercurial-logo.png"><img class="alignright size-full wp-image-242" title="mercurial" src="http://www.reloadedpc.com/wp-content/uploads/2010/08/mercurial-logo.png" alt="mercurial logo" width="184" height="61" /></a>I was recently tinkering around with <a href="http://mercurial.selenic.com/">Mercurial</a> and getting my feet wet using a distributed source version control. I have been using Subversion for about the past year, and has served me well. I wanted to get involved with some of the projects hosted on <a href="http://bitbucket.org">Bitbucket.org</a> in order to fork some projects.  The are a number of useful Codeigniter projects and zen-cart addons on there as well. One of the main ideas behind using a DSVC is not needing a centralized server. This seems great, if you are doing your work where will you have access to the network at some point to push/pull those changesets.  I work from a couple locations and need to be able to push/pull those changes. Pricing plans on Bitbucket.org are very reasonable, but I needed to host a few extra private repositories. Got me thinking to install mercurial on that FreeNAS box sitting quietly in my basement.  I am currently using FreeNAS .69. If you are running another build of FreeNAS, you will need to find the appropriate packages for your build.<span id="more-241"></span>It took a looking around in the FreeBSD ports to find the packages I needed. It was actually  a lot easier than  I though it would be. Here is a list of the packages you will need for FreeNAS:</p>
<ol>
<li><a href="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/devel/mercurial-1.5.4.tbz">Mecurial 1.5.4</a></li>
<li><a href="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/lang/python26-2.6.5.tbz">Python 2.6.5</a></li>
<li><a href="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/converters/libiconv-1.13.1_1.tbz">Libiconv 1.13.1</a></li>
<li><a href="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/converters/libiconv-1.13.1_1.tbz">Gettext 0.18</a></li>
</ol>
<p>Download each of the files to your desktop, and login into your FreeNAS webGUI. Then navigate to System-&gt;Packages. Click on the &#8220;Add&#8221; icon to install a new package. On the next screen you will see a browse button and install button.</p>
<div id="attachment_243" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.reloadedpc.com/wp-content/uploads/2010/08/freenas-06082010_212154.jpg"><img class="size-medium wp-image-243" title="FreeNAS install packages" src="http://www.reloadedpc.com/wp-content/uploads/2010/08/freenas-06082010_212154-300x224.jpg" alt="FreeNAS install packages" width="300" height="224" /></a><p class="wp-caption-text">Click to Enlarge</p></div>
<p>You will need to install the packages in the correct order to satisfy their dependencies. Click on the &#8220;Browse&#8221; button, then &#8220;Install&#8221; button for each in this order:</p>
<ol>
<li>libiconv-1.13.1_1.tbz</li>
<li>gettext-0.18_1.tbz</li>
<li>python26-2.6.5.tbz</li>
<li>mercurial-1.5.4.tbz</li>
</ol>
<p>Congratulations you now have mercurial installed on your FreeNAS box. You starting hosting your own repositories. I create a folder in my FreeNAS drive and issued a:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$hg init</pre></div></div>

<p>I copied a few files in the folder from my laptop using Windows Explorer and then typed:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$hg add
$hg commit -m &quot;Import new files into repo&quot;</pre></div></div>

<p>Now I clone the repo to my laptop using</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$hg clone ssh://user:pass@freenas/path/to/repo local-folder</pre></div></div>

<p>If you omit the user and pass from the url, your will be prompted for them. This seemed like it would be a little more difficult to do as there is very little documentation on the FreeNAS website about packages. I was unable to find any other posts about this setup, so I hope someone else will find it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/other/freenas-and-mercurial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PetFinder API PHP Class Library</title>
		<link>http://www.reloadedpc.com/php/petfinder-api-php-class-library/</link>
		<comments>http://www.reloadedpc.com/php/petfinder-api-php-class-library/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 04:14:56 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[petfinder]]></category>
		<category><![CDATA[petfinder api]]></category>
		<category><![CDATA[php class]]></category>
		<category><![CDATA[php library]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=69</guid>
		<description><![CDATA[I was interested in a project for a website as to what data could be retrieved from PetFinder.com. To my surprise, on their website located in the footer is a link to their API documentation. In order to use their API, you must first fill out a developer request for a key &#38; password. I [...]]]></description>
			<content:encoded><![CDATA[<h3><span style="font-weight: normal; font-size: 13px;">I was interested in a project for a website as to what data could be retrieved from <a href="http://www.petfinder.com">PetFinder.com</a>. To my surprise, on their website located in the footer is a link to their <a href="http://www.petfinder.com/developers/api-docs#methods">API documentation</a>. In order to use their API, you must first fill out a developer request for a key &amp; password. I did a quick look to see if anyone had written a php class for accessing the api, but couldn&#8217;t find anything useful. I have created a php class that you can call the certain methods available to retrieve the records.</span></h3>
<h3>Update 6-30-2010:</h3>
<p>I recently updated the class to enable caching the xml response from the Petfinder server. This should provide a nice little speed boost even though it was already pretty fast <img src='http://www.reloadedpc.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="PetFinder API PHP Class Library" /> . Caching is enabled by default, and caches expires in 3 minutes. The folder &#8220;cache_files&#8221; in zip folder must have write permissions. As shown in the instructions, you can change the paths of cache files.</p>
<p><span id="more-69"></span>This class will parse the returned xml as a data array. This libary requires just 4 easy steps to get data:</p>
<ol>
<li>Add api-password to class</li>
<li>Add api-key to class</li>
<li>Pass configuration values as an array</li>
<li>Call the method in the class</li>
</ol>
<p>Here is an example of how to use the php class</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'class.petfinder.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//include class</span>
<span style="color: #000088;">$pet</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Petfinder<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//create Petfinder object</span>
<span style="color: #000088;">$pet</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setKey</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'12345'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//your api-key</span>
<span style="color: #000088;">$pet</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setPass</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'abcdef'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//your api-secret</span>
<span style="color: #000088;">$pet</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cache_expire'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">360</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//(optional) Time in secs to expire  default shown</span>
<span style="color: #000088;">$pet</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cache_path'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'full_path_to_cache_folder'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//(optional) Set cache path </span>
<span style="color: #000088;">$pet</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cache_enable'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//(optional) Disable cache feature </span>
&nbsp;
<span style="color: #000088;">$config</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'location '</span><span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'44805'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'animal'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'dog'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//associative array of values to pass to class. array keys must match arguments from API</span>
<span style="color: #000088;">$pet</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">initialize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//pass values to the class</span>
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pet</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">petFind</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//call API method which are accessed by camel casing them (pet.find=petFind)</span></pre></div></div>

<p>The xml data is returned as an associative array. The array has been mapped to the xml layout returned by PetFinder. Echo out the variable and you will see the returned status code, the array of returned values, and the xml response data from PetFinder.</p>
<p><a href="http://www.reloadedpc.com/petfinder/petfinder.php">Demo Output</a></p>
<p><a rel="attachment wp-att-72" href="http://www.reloadedpc.com/php/petfinder-api-php-class-library/attachment/class-petfinder/">Download Class File</a><br />
<a rel="attachment" href="http://www.reloadedpc.com/wp-content/uploads/2009/09/petfinder-v.9.zip">Download Demo + Class File</a></p>
<p>If you would like to donate, you may do so by using Paypal.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_s-xclick" />
<input name="hosted_button_id" type="hidden" value="10530731" />
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" type="image" />
<img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="PetFinder API PHP Class Library pixel " width="1" height="1" title="PetFinder API PHP Class Library" /><br />
</form>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/php/petfinder-api-php-class-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter + Whitepages.com API Library</title>
		<link>http://www.reloadedpc.com/code-igniter/codeigniter-whitepagescom-api-library/</link>
		<comments>http://www.reloadedpc.com/code-igniter/codeigniter-whitepagescom-api-library/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 13:51:22 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Code Igniter]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[php library]]></category>
		<category><![CDATA[whitepages.com]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=223</guid>
		<description><![CDATA[I was recently working on another Codeigniter project that I needed to grab some phone, address, &#38; map information for plotting on a map. After doing a little searching I found Whitepages.com has provided an API interface for retrieving data via REST. The methods seemed simple enough, and provided an easy way to create a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://codeigniter.com"><img class="alignright size-full wp-image-41" title="CodeIgniter Logo" src="http://www.reloadedpc.com/wp-content/uploads/2009/07/ci_logo_flame.jpg" alt="CodeIgniter + Whitepages.com API Library ci logo flame " width="150" height="164" /></a>I was recently working on another Codeigniter project that I needed to grab some phone, address, &amp; map information for plotting on a map. After doing a little searching I found Whitepages.com has provided an API interface for retrieving data via REST. The methods seemed simple enough, and provided an easy way to create a CodeIgniter library to due the dirty work.<span id="more-223"></span>The library is pretty straightforward and includes good easy to read documentation.  You can receive data in either XML or in JSON format. I&#8217;ve included for demo purposes a SimpleXML codeigniter library to parse and convert the XML to an associative array. You can view the controller to see how this was implemented.</p>
<p>As shown in the readme docs, the class is easy to use. Example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$info</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'lastname'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Smith'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'firstname'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'John'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'xml'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">whitepages_lib</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">find_person</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$info</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This will search using the <strong>find_person</strong> method of the API for the name &#8220;John Smith&#8221;. You can pass any of the fields shown in the documentation in your associative array.</p>
<p>Download <a href='http://www.reloadedpc.com/wp-content/uploads/2010/04/whitepages.zip'>CodeIgniter Whitepages.com API Library</a></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8DNGYPD3WRZCQ">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="CodeIgniter + Whitepages.com API Library pixel " border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" title="CodeIgniter + Whitepages.com API Library" /><br />
</form>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/code-igniter/codeigniter-whitepagescom-api-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Codeigniter + Geshi</title>
		<link>http://www.reloadedpc.com/code-igniter/codeigniter-geshi/</link>
		<comments>http://www.reloadedpc.com/code-igniter/codeigniter-geshi/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 14:23:49 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Code Igniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[geshi]]></category>
		<category><![CDATA[php class]]></category>
		<category><![CDATA[php library]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=217</guid>
		<description><![CDATA[Geshi is a PHP class to do the heavy lifting for syntax highlighting output to your browswer. Geshi started originally to help users highlight code posted on bulletin board sites. I converted the standard Geshi class into a Codeigniter library. Just a simple as renaming the class and created a few methods to conform to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://qbnz.com/highlighter/">Geshi</a> is a PHP class to do the heavy lifting for syntax highlighting output to your browswer. <a href="http://www.reloadedpc.com/wp-content/uploads/2009/07/ci_logo_flame.jpg"><img class="alignright size-full wp-image-41" title="CodeIgniter Logo" src="http://www.reloadedpc.com/wp-content/uploads/2009/07/ci_logo_flame.jpg" alt="Codeigniter + Geshi ci logo flame " width="150" height="164" /></a>Geshi started originally to help users highlight code posted on bulletin board sites. I converted the standard Geshi class into a Codeigniter library. Just a simple as renaming the class and created a few methods to conform to some of the options you&#8217;ll find in codeigniter.<br />
<span id="more-217"></span><br />
Download <a href="http://www.reloadedpc.com/wp-content/uploads/2010/04/geshi-CI-library.zip">Codeigniter Geshi Library</a></p>
<p>Here&#8217;s how you will use this library in Codeigniter. First, extract the zip file and place the contents into your /application/libraries folder within your codeigniter folder structure.</p>
<p>Example code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">library</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'geshi'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//load geshi class</span>
&nbsp;
<span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'set_language'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'php'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//REQUIRED set language to parse</span>
<span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'set_source'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'foreach($test as $item){ echo &quot;hello&quot;;}'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//REQUIRED set source code to parse</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">geshi</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">initialize</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">geshi</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">output</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//output from geshi alias of parse_code</span></pre></div></div>

<p>You can pass any geshi method or variable in the config array. Just name the key the same as the method or variable you are setting, and the value to what you would like to pass.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8DNGYPD3WRZCQ">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="Codeigniter + Geshi pixel " border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" title="Codeigniter + Geshi" /><br />
</form>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/code-igniter/codeigniter-geshi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zencart + Price Breaks + Easy Populate</title>
		<link>http://www.reloadedpc.com/zen-cart/zencart-price-breaks-easy-populate/</link>
		<comments>http://www.reloadedpc.com/zen-cart/zencart-price-breaks-easy-populate/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 17:33:19 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Zen-Cart]]></category>
		<category><![CDATA[easy populate]]></category>
		<category><![CDATA[price breaks]]></category>
		<category><![CDATA[zencart]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=168</guid>
		<description><![CDATA[Here is another update to the popular add-on for Zencart called Easy Populate. For those unfamiliar with Easy Populate, it&#8217;s a fantastic add-on for Zencart. Easy Populate allows user to create comma separated values (.csv) files to editing the list of products in their Zencart installation. A user recently emailed me requesting an additional feature [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_18" class="wp-caption alignright" style="width: 156px"><a href="http://www.reloadedpc.com/wp-content/uploads/2009/07/zen-cart-logo.png"><img class="size-full wp-image-18" title="zen-cart-logo" src="http://www.reloadedpc.com/wp-content/uploads/2009/07/zen-cart-logo.png" alt="Zencart + Price Breaks + Easy Populate zen cart logo " width="146" height="40" /></a><p class="wp-caption-text">Zen-Cart</p></div>
<p>Here is another update to the popular add-on for Zencart called Easy Populate. For those unfamiliar with Easy Populate, it&#8217;s a fantastic add-on for Zencart. Easy Populate allows user to create comma separated values (.csv) files to editing the list of products in their Zencart installation. A user recently emailed me requesting an additional feature of price break imports to be included in Easy Populate.<span id="more-168"></span><br />
Price breaks are created in Zencart by navigation to your cart admin page. Then clicking on the menu I originally tried creating a very complex SQL query that didn&#8217;t quite reach it&#8217;s potential. I ended coding a solution that worked pretty well. The updated version of Easy Populate is availabe to download below. Instructions are included in the file about installation or upgrading from previous versions of Easy Populate.</p>
<p>This updated version of the script will export the model number, price, discount type, discount qty, discount price, discount qty, discount price, etc. Edit the discount type as follows:</p>
<blockquote><p>The v_discount_type values are:<br />
0: none,<br />
1: Percentage,<br />
2: Actual Price,<br />
3: Amount off</p></blockquote>
<p>If any item is set to discount type 0 then any previous price breaks entered will be deleted upon import of file. If you need more columns than what is exported by default, just simple copy the pattern of titles of the columns (ie discount_qty_0, discount_qty_1,&#8230;discount_qty_n and discount_price_0, discount_price_1,&#8230;discount_price_n).</p>
<p><a href="http://www.reloadedpc.com/wp-content/uploads/2009/12/easy_populate_csv_1-2-5-8.zip">Download Easy Populate v 1.2.5.8 </a></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8DNGYPD3WRZCQ">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="Zencart + Price Breaks + Easy Populate pixel " border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" title="Zencart + Price Breaks + Easy Populate" /><br />
</form>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/zen-cart/zencart-price-breaks-easy-populate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zencart Custom Session Length</title>
		<link>http://www.reloadedpc.com/zen-cart/zencart-custom-session-length/</link>
		<comments>http://www.reloadedpc.com/zen-cart/zencart-custom-session-length/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 17:17:47 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Zen-Cart]]></category>
		<category><![CDATA[expiration]]></category>
		<category><![CDATA[lose cart]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[timeout]]></category>
		<category><![CDATA[zencart]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=203</guid>
		<description><![CDATA[Lately, I have been developing a few modifications for Zencart. One of things I have noticed during the development process, is my shopping cart being lost while typing code and then refreshing the page a little while later. This was no big deal. Just go in add another product, and test again. Then, I got [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_18" class="wp-caption alignleft" style="width: 156px"><a href="http://www.zen-cart.com"><img class="size-full wp-image-18" title="zen-cart-logo" src="http://www.reloadedpc.com/wp-content/uploads/2009/07/zen-cart-logo.png" alt="Zencart Custom Session Length zen cart logo " width="146" height="40" /></a><p class="wp-caption-text">Zen-Cart</p></div>
<p>Lately, I have been developing a few modifications for Zencart. One of things I have noticed during the development process, is my shopping cart being lost while typing code and then refreshing the page a little while later. This was no big deal. Just go in add another product, and test again. Then, I got to talking to a few other users who seem to experience the same problem of losing their session. As an end user or a customer this can be frustrating that you have added items to your cart, and then something come ups. They come back to their cart, go to another page, and they have lost their shopping cart. Zencart checks your php.ini for session length. On some hosting accounts, you don&#8217;t have access to change this value, or you just want a more user friendly way to adjust this.  This contribution / modification for Zen-cart will fix this problem. No core files are touched with this mod. You can extend the session length / timeout / expiration from the admin page.</p>
<p><span id="more-203"></span>Download <a href="http://www.reloadedpc.com/wp-content/uploads/2010/02/zencart-custom_session.zip">Zencart Custom Session Timeout</a></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8DNGYPD3WRZCQ">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="Zencart Custom Session Length pixel " border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" title="Zencart Custom Session Length" /><br />
</form>
<p>Installation instructions are included in the zip file in readme.txt. Here is a copy of the instructions:</p>
<ol>
<li>-Unzip folder contents.</li>
<li>-Rename /admin folder to match the name of your custom admin folder.</li>
<li>-Upload files to your server</li>
<li>-Login into your admin page for zencart (-This should automatically install this mod)</li>
<li> -Goto Admin-&gt;Configuration-&gt;My Store</li>
<li> -Click on Customer Session Time Out in Seconds and set your desired value.</li>
<li> -Click [Update] button to save changes.</li>
<li>-You&#8217;re Done!!</li>
</ol>
<p>Now, you will be able to change the session timeout / length / expiration for your zencart store.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/zen-cart/zencart-custom-session-length/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zencart reCAPTCHA Contribution Mod</title>
		<link>http://www.reloadedpc.com/zen-cart/zencart-recaptcha-contribution-mod/</link>
		<comments>http://www.reloadedpc.com/zen-cart/zencart-recaptcha-contribution-mod/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 14:33:44 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Zen-Cart]]></category>
		<category><![CDATA[recaptcha]]></category>
		<category><![CDATA[zencart]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=198</guid>
		<description><![CDATA[One of the few options to try and combat SPAM on your zencart install, is to try and implement a CAPTCHA text/image on your contact us page. I recently updated a contribution I  created several months ago. This reCAPTCHA contribution will add configuration fields to the database for your api key and password, color theme [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_18" class="wp-caption alignleft" style="width: 156px"><a href="www.zencart.com"><img class="size-full wp-image-18" title="zen-cart-logo" src="http://www.reloadedpc.com/wp-content/uploads/2009/07/zen-cart-logo.png" alt="Zencart reCAPTCHA Contribution Mod zen cart logo " width="146" height="40" /></a><p class="wp-caption-text">Zen-Cart</p></div>
<p>One of the few options to try and combat SPAM on your zencart install, is to try and implement a CAPTCHA text/image on your contact us page. I recently updated a contribution I  created several months ago. This reCAPTCHA contribution will add configuration fields to the database for your api key and password, color theme selection, and enable/disable feature on contact us form.  The original contribution had used native mysql queries, so I have updated the contribution to support zencart&#8217;s $db:Factory object.<span id="more-198"></span>Download the file below, and read the included instructions. There is only one original core file that has been overwritten. The reCAPTCHA logic had to be added to the contact us form validation.</p>
<p>Upload files to your zencart installation folder, and login into your admin page. The contribution will automatically install it&#8217;s configuration values. On a page refresh, you should see a new box under Admin-&gt;Configuration-&gt;reCAPTCHA.</p>
<p>If you are upgrading from a previous install of this mod, append [&amp;remove_recaptcha=yes] to the url in your admin page, and press [Enter]. This will reinstall the contribution.</p>
<p><a href="http://www.reloadedpc.com/wp-content/uploads/2010/02/contactus_recaptcha_v1-1.zip">Download Zencart reCAPTCHA</a></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_s-xclick" />
<input name="hosted_button_id" type="hidden" value="8DNGYPD3WRZCQ" />
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" type="image" /> <img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="Zencart reCAPTCHA Contribution Mod pixel " width="1" height="1" title="Zencart reCAPTCHA Contribution Mod" /><br />
</form>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/zen-cart/zencart-recaptcha-contribution-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zencart + UPS XML Dimensional Support</title>
		<link>http://www.reloadedpc.com/zen-cart/zencart-ups-xml-dimensional-support/</link>
		<comments>http://www.reloadedpc.com/zen-cart/zencart-ups-xml-dimensional-support/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 16:19:12 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Zen-Cart]]></category>
		<category><![CDATA[ups xml]]></category>
		<category><![CDATA[zencart]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=192</guid>
		<description><![CDATA[One task I have put off from switching from osCommerce to ZenCart shopping cart platform, was updating the UPS XML contribution.  For those familiar with the shopping cart system, you know by default they only support standard UPS shipping. The cart figures shipping all the items together in one box. However, some products can&#8217;t be [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_18" class="wp-caption alignleft" style="width: 156px"><a href="http://www.zencart.com"><img class="size-full wp-image-18" title="zen-cart-logo" src="http://www.reloadedpc.com/wp-content/uploads/2009/07/zen-cart-logo.png" alt="Zencart + UPS XML Dimensional Support zen cart logo " width="146" height="40" /></a><p class="wp-caption-text">Zen-Cart</p></div>
<p>One task I have put off from switching from osCommerce to ZenCart shopping cart platform, was updating the UPS XML contribution.  For those familiar with the shopping cart system, you know by default they only support standard UPS shipping. The cart figures shipping all the items together in one box. However, some products can&#8217;t be shipped together, and distorts shipping quotes for UPS. The solution that evolved in osCommerce was using UPS shipping API to get detailed freight quotes.<br />
<span id="more-192"></span></p>
<p>The UPS API accepts a XML document with shipment details, and returns rates for the various services available.  The current UPS XML  contribution for ZenCart lacked the packing and dimensional support that had been added to the osCommerce version. I was familiar with the code in osCommerce, and started porting the code over to ZenCart. Thankfully, for the override system in ZenCart, makes adding modifications alot easier.</p>
<p>This contribution only overwrites 2 original file. The file is:</p>
<p>/admin/includes/modules/product/collect_info.php<br />
/admin/includes/modules/update_product.php</p>
<p>This edits add the data entry for dimension fields to the add/update products screen. The zip file contains readme instructions for installing this.</p>
<p>Download <a href="http://www.reloadedpc.com/wp-content/uploads/2010/02/zencart-UPS_XMLv1.3.6.zip">zencart-UPS_XMLv1.3.6</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/zen-cart/zencart-ups-xml-dimensional-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup WAMP and SVN Subversion on Windows</title>
		<link>http://www.reloadedpc.com/other/setup-wamp-svn-subversion-windows/</link>
		<comments>http://www.reloadedpc.com/other/setup-wamp-svn-subversion-windows/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 05:17:04 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=175</guid>
		<description><![CDATA[Say you work on a desktop and a laptop computer, and you synchronize your laptop. Edit some files, save, and upload. Everything is fine. Now you get home or back in the office, sit down at the desktop, and forget to synchronize. You edit the files some more, upload, and save. Uh-oh, now you lost [...]]]></description>
			<content:encoded><![CDATA[<p>Say you work on a desktop and a laptop computer, and you synchronize your laptop. Edit some files, save, and upload. Everything is fine. Now you get home or back in the office, sit down at the desktop, and forget to synchronize. You edit the files some more, upload, and save. Uh-oh, now you lost the changes you made on your laptop. You&#8217;ll have to get a copy off the laptop, and find all the changes you made. Ever done this? Version Control makes this scenario so much easier to resolve.<span id="more-175"></span></p>
<p>I&#8217;ve been putting off for quite some time setting up version control for the various websites I work on. I was finding myself sometimes editing a file, saving my changes, and getting uploaded to the site to find I had made an error or broke another feature. I&#8217;ve been using Dreamweaver to do my php coding and css editing, and enjoyed the easy benefit of using the synchronize feature.  Dreamweaver makes it easy to get the lastest edits off the server, and have a local copy to work on. Dreamweaver will also save automatically back via FTP. However, it makes for a better WYSIWYG editor than a development environment, and does not offer any backup option. </p>
<p>I tried out a few PHP IDE&#8217;s like <a href="http://netbeans.org/">Netbeans</a>. Wow, coding became alot simpler with the advantages of code completion and hints. Unfortunately, I didn&#8217;t seem to find an IDE that uses the synchronization feature, but all support SVN version control. I decided to take the plunge and setup my computers to harness the advantages of version control.</p>
<p>I&#8217;ve been using WAMP on several computers, and makes it just as easy to setup as it was in Ubuntu. WAMP is a pre-configured Apache, MySQL, PHP, phpMyAdmin, and SQLiteManager stack for Windows. You can setup a webserver in under 5 mins on your windows box. I have set this up on both Windows Vista x64 and Windows XP SP3. I followed several guides online, and each seemed to be missing a piece here or there. <strong>Also, beware of the SVN 1 click installer</strong>. The download contains a version of Subversion that&#8217;s not compatible with Apache 2.2.11 included with WAMP. I learned this the hard way.</p>
<h3>Summary of Folder Layout</h3>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">c:\clients\project1 -&gt; Working Copy
c:\svn -&gt; Subversion Installation
c:\svnrepos -&gt; Repository Parent Location
c:\svnrepos\project1 -&gt; Sample Repository
c:\wamp -&gt;WAMP Installation
c:\wamp\www\project1 -&gt; Live Copy
c:\Program Files\TortoiseSVN -&gt;TortoiseSVN Installation</pre></div></div>

<p>You will need 3 things to get a WAMP + Subversion up and running.</p>
<ol>
<li><a href="http://www.wampserver.com/en/download.php">Wamp</a> v2.0i</li>
<li><a href="http://subversion.tigris.org/files/documents/15/46906/Setup-Subversion-1.6.6.msi">Subversion</a> v1.6.6</li>
<li><a href="http://tortoisesvn.net/downloads">TortoiseSVN</a> v1.6.6</li>
</ol>
<p>First, you need to install each of the packages. During the install of Subversion, select &#8220;Bind to Apache 2.2.x&#8221;. I chose to install subversion to:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">c:\svn</pre></div></div>

<p>Try to prevent using spaces in your file paths to eliminate any problems in Apache. This will provide the right files to be installed that will work with the version of Apache that&#8217;s installed by WAMP. Now, that you have the packages installed, it&#8217;s time to marry WAMP with SVN. You will need to copy files between folders.</p>
<p>Copy <strong>mod_authz_svn.so</strong> and <strong>mod_dav_svn.so</strong> from</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">c:\svn\bin to C:\wamp\bin\apache\Apache2.2.11\modules</pre></div></div>

<p>Copy <strong>intl3_svn.dll</strong> and <strong>libdb44.dll</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">c:\svn\bin to C:\wamp\bin\apache\Apache2.2.11\bin</pre></div></div>

<p>Now click on the white half circle tray icon for WAMP->Apache->httpd.conf. We need to add these modules into Apache&#8217;s configuration file. Find the lines:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so</pre></div></div>

<p>Change to:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so</pre></div></div>

<p>Save the file. Click on the WAMP tray icon again, and then click Restart All Services. Wait for the icon to turn all white again. When it does you are ready to proceed with setting up your first repository. If you have trouble, try exiting WAMP, and then start the application again.<br />
Now you need to create a repository folder. I chose:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">c:\svnrepos</pre></div></div>

<p>Since I will be hosting multiple projects go ahead and create another subfolder:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">c:\svnrepos\project1</pre></div></div>

<p><del datetime="2010-02-01T14:11:14+00:00">Now let&#8217;s create the repository by right clicking on the c:\svnrepos\project1 folder->TortoiseSVN->Create Repository Here. You will get a confirmation that folder was created successfully.</del><br />
<strong>Update 2010-02-01</strong>:<br />
I&#8217;ve noticed the latest build of TortoiseSVN is not creating compatible version for Apache, but will the command line version will work.<br />
Open command line, and type:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">cd c:\svnrepos\
svnadmin create c:\svnrepos\project1</pre></div></div>

<p>Time to setup Apache to allow browsing of the repository. Click on the WAMP icon->Apache->httpd.conf. Scroll to the bottom of the file and above:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Include &quot;c:/wamp/alias/*&quot;</pre></div></div>

<p>Add:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&lt;Location /svn&gt;
	DAV svn
	SVNParentPath C:/svnrepos
&lt;/Location&gt;</pre></div></div>

<p>Save the file. Leave it open, and click on WAMP tray icon->Restart All Services. Wait for icon to turn all white again. Now you should be able to navigate to <a href="http://localhost/svn/project1">http://localhost/svn/project1</a>. If successful, you should see a blank directory listing for project1 &#8211; Revision 0.</p>
<p>If you don&#8217;t require any authentication, you are done. Go have some fun and enjoy your free SVN repository. In Windows Explorer navigate again to c:\svnrepos\project1, right click on folder->TortoiseSVN->Repo-browser. In the right-hand pane right click again->Create directory. Then type in trunk. Repeat to create folders branches and tags. Now start importing your files into the trunk folder. Do this by right-click in right pane->Add File(Folder). Choose a file/folder, add a comment and click okay. You now have started your repository. You can refresh the browser page and check out the changes.</p>
<p>Ready to add user authentication? It&#8217;s easy to setup a basic user/password method. First we need to create a password file for Apache to protect the browsing of the repository. Create the password file by using the command line:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">cd C:\wamp\bin\apache\Apache2.2.11\bin
htpasswd -c svnpasswd username</pre></div></div>

<p>Open httpd.conf file again. You need to add a few commands to the <Location> block at the bottom of the file. Below the line:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">SVNParentPath C:/svnrepos</pre></div></div>

<p>Add:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">AuthType Basic
AuthName &quot;Subversion Repository&quot;
AuthUserFile bin/svnpasswd
Require valid-user</pre></div></div>

<p>Click on WAMP tray icon->Restart All Services. Refresh your browser page and you should be asked for your login credentials. Congrats! Remember this authentication method only protects browsing. It does not control who can read/write/edit/commit/delete file from the repository.</p>
<h3>Putting It All Together</h3>
<p>We&#8217;ve got WAMP/SVN up and running, but how do you use this? Here&#8217;s what I am doing right now. Get all the files imported into your repository /trunk folder using TortoiseSVN. I created folder for my working copies that I will be developing and testing. I used:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">c:\clients</pre></div></div>

<p>Navigate to this folder create a new folder (ie. project1). Right click on folder->SVN Checkout . Fill out as shown:<br />
<a href="http://www.reloadedpc.com/wp-content/uploads/2010/01/wamp-svn_19012010_223704.jpg"><img src="http://www.reloadedpc.com/wp-content/uploads/2010/01/wamp-svn_19012010_223704.jpg" alt="Setup WAMP and SVN Subversion on Windows wamp svn 19012010 223704 " title="wamp-svn_project1-checkout" width="468" height="361" class="alignleft size-full wp-image-180" /></a></p>
<p>Click OK, and all the files from the repository will be copied/downloaded to the folder. In order to be able to debug/test your working copy, create an alias that points to that folder. I use an alias because I use my WAMP webroot for serving real pages. Right click WAMP tray icon->Apache->Alias directories->Add alias. A command prompt will open, type in alias and the path to the folder using forward slashes.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">svnproject1 [Press Enter]
c:/clients/project1</pre></div></div>

<p>Point your browser to <a href="http://localhost/svn/project1/">http://localhost/svn/project1</a>, and you should see your test site. You have a separate method to test your working copy. Make some changes/edits of files. Commit your changes to the repository by right click on the folder:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">c:\clients\project1</pre></div></div>

<p>Choose SVN Commit, enter a comment, and click OK. Once you have a working copy you would like to move to live, navigate to:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">c:\wamp\www</pre></div></div>

<p>Right click in Windows Explorer->SVN Checkout and fill out as shown:<br />
<a href="http://www.reloadedpc.com/wp-content/uploads/2010/01/wamp-svn_19012010_231759.jpg"><img src="http://www.reloadedpc.com/wp-content/uploads/2010/01/wamp-svn_19012010_231759.jpg" alt="Setup WAMP and SVN Subversion on Windows wamp svn 19012010 231759 " title="wamp-svn-live-checkout" width="468" height="361" class="alignleft size-full wp-image-181" /></a></p>
<p>Click OK, and the latest revision will be copied to the folder. Browse <a href="http://localhost/project1">http://localhost/project1</a>. You are running a live copy. Whenever you&#8217;ve ready to roll out an update, just right click on the folder->SVN Update. All changes will be synchronized.</p>
<p>I am running this setup at work for one of our small internal web applications. I have the repository on my computer. I&#8217;ve created a working copy. I work on adding some new reports, or improving the UI with some jQuery. Test it locally, and fix any bugs. Open a ssh session to the server an issue &#8220;svn update&#8221; in the webroot, and the applications are updated without going down.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/other/setup-wamp-svn-subversion-windows/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 6/11 queries in 0.006 seconds using disk

Served from: www.reloadedpc.com @ 2010-09-03 09:37:22 -->