<?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: Initial Magento Setup Development Tips</title>
	<atom:link href="http://classyllama.com/development/magento-development/magento-initial-setup/feed/" rel="self" type="application/rss+xml" />
	<link>http://classyllama.com/development/magento-development/magento-initial-setup/</link>
	<description>Classy Llama Studios is a team of developers, designers and marketers specializing in Magento, Wordpress and Custom Web Application development.</description>
	<lastBuildDate>Thu, 22 Jul 2010 04:22:21 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ehansen</title>
		<link>http://classyllama.com/development/magento-development/magento-initial-setup/comment-page-1/#comment-81</link>
		<dc:creator>ehansen</dc:creator>
		<pubDate>Sat, 20 Feb 2010 19:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://classyllama.com/?p=185#comment-81</guid>
		<description>@bluescrubbie - Thanks.  Yes, I do mean &#039;ocal&#039;, as that code only checks the last four characters of the base url.  I could have used code like this, but I didn&#039;t see the need for the overhead of the extra function calls:

&lt;pre lang=&quot;php&quot; colla=&quot;+&quot;&gt;
in_array( array_pop( explode(&#039;.&#039;, $_SERVER[&#039;HTTP_HOST&#039;]) ), array(&#039;local&#039;, &#039;dev&#039;) )
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@bluescrubbie &#8211; Thanks.  Yes, I do mean &#8216;ocal&#8217;, as that code only checks the last four characters of the base url.  I could have used code like this, but I didn&#8217;t see the need for the overhead of the extra function calls:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p185code1'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1851"><td class="code" id="p185code1"><pre class="php" style="font-family:monospace;"><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">&#40;</span> <a href="http://www.php.net/array_pop"><span style="color: #990000;">array_pop</span></a><span style="color: #009900;">&#40;</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'.'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'local'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dev'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: bluescrubbie</title>
		<link>http://classyllama.com/development/magento-development/magento-initial-setup/comment-page-1/#comment-80</link>
		<dc:creator>bluescrubbie</dc:creator>
		<pubDate>Sat, 20 Feb 2010 19:04:36 +0000</pubDate>
		<guid isPermaLink="false">http://classyllama.com/?p=185#comment-80</guid>
		<description>Thanks for the great contribution!
in your first snippet (the index.php addition), do you mean &#039;.local&#039; for your second array element?  You&#039;ve got &#039;ocal&#039; now.</description>
		<content:encoded><![CDATA[<p>Thanks for the great contribution!<br />
in your first snippet (the index.php addition), do you mean &#8216;.local&#8217; for your second array element?  You&#8217;ve got &#8216;ocal&#8217; now.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
