<?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: Localhost / Web switch function</title>
	<atom:link href="http://kahi.cz/wordpress/localhost-web-switch-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://kahi.cz/wordpress/localhost-web-switch-function/</link>
	<description>Kahi's blog about WordPress, blogging (or content management?) system. Aimed mainly at advanced WP users.</description>
	<lastBuildDate>Thu, 29 Jul 2010 12:45:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Anonymous</title>
		<link>http://kahi.cz/wordpress/localhost-web-switch-function/#comment-33941</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 15 Aug 2009 14:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://kahi.cz/wordpress/?p=61#comment-33941</guid>
		<description><p>&lt;!&#8211;texy&#8211;&gt;or try this.. COMPUTERNAME ENV var is present on my Vista SP2 machine.. `echo (getenv(&#039;COMPUTERNAME&#039;) == &#039;TRON&#039;) ? &#039;devmachine&#039; : &#039;productionmachine&#039;;` you just don&#039;t have to add any ENV var.. just viewed linux phpinfo.. there is no COMPUTERNAME :( so if you are working on Windows, this is an option</p>
</description>
		<content:encoded><![CDATA[
<p>or try this.. COMPUTERNAME ENV var is present on my Vista SP2 machine..
<code>echo (getenv('COMPUTERNAME') == 'TRON') ? 'devmachine' :
'productionmachine';</code> you just don't have to add any ENV var.. just viewed
linux phpinfo.. there is no COMPUTERNAME :( so if you are working on Windows,
this is an option</p>

<!-- by Texy2! -->]]></content:encoded>
	</item>
	<item>
		<title>By: Kahi</title>
		<link>http://kahi.cz/wordpress/localhost-web-switch-function/#comment-28155</link>
		<dc:creator>Kahi</dc:creator>
		<pubDate>Thu, 15 Jan 2009 16:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://kahi.cz/wordpress/?p=61#comment-28155</guid>
		<description><p>&lt;!&#8211;texy&#8211;&gt;[3] I see, never heard of $_ENV before :-).</p>
</description>
		<content:encoded><![CDATA[
<p>[3] I see, never heard of $_ENV before :-).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OndroNR</title>
		<link>http://kahi.cz/wordpress/localhost-web-switch-function/#comment-28137</link>
		<dc:creator>OndroNR</dc:creator>
		<pubDate>Thu, 15 Jan 2009 13:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://kahi.cz/wordpress/?p=61#comment-28137</guid>
		<description><p>&lt;!&#8211;texy&#8211;&gt;little testing and it works :) I just added new environmental variable through Windows interface, restarted apache (config reload; php as module) and this works now<br />
`echo (getenv(&#039;phptest&#039;) == &#039;devmachine&#039;) ? &#039;devmachine&#039; : &#039;productionmachine&#039;;`</p>
</description>
		<content:encoded><![CDATA[
<p>little testing and it works :) I just added new environmental variable
through Windows interface, restarted apache (config reload; php as module) and
this works now<br />
<code>echo (getenv('phptest') == 'devmachine') ? 'devmachine' :
'productionmachine';</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OndroNR</title>
		<link>http://kahi.cz/wordpress/localhost-web-switch-function/#comment-28134</link>
		<dc:creator>OndroNR</dc:creator>
		<pubDate>Thu, 15 Jan 2009 13:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://kahi.cz/wordpress/?p=61#comment-28134</guid>
		<description><p>&lt;!&#8211;texy&#8211;&gt;I mean $_ENV.. can I add new item to it using apache or lighthttpd?</p>
</description>
		<content:encoded><![CDATA[
<p>I mean $_ENV.. can I add new item to it using apache or lighthttpd?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kahi</title>
		<link>http://kahi.cz/wordpress/localhost-web-switch-function/#comment-27998</link>
		<dc:creator>Kahi</dc:creator>
		<pubDate>Wed, 14 Jan 2009 14:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://kahi.cz/wordpress/?p=61#comment-27998</guid>
		<description><p>&lt;!&#8211;texy&#8211;&gt;[1] I&#039;m not sure what do you mean by &quot;ENV vars&quot;&#8230;</p>
</description>
		<content:encoded><![CDATA[
<p>[1] I'm not sure what do you mean by „ENV vars“…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OndroNR</title>
		<link>http://kahi.cz/wordpress/localhost-web-switch-function/#comment-27996</link>
		<dc:creator>OndroNR</dc:creator>
		<pubDate>Wed, 14 Jan 2009 13:16:08 +0000</pubDate>
		<guid isPermaLink="false">http://kahi.cz/wordpress/?p=61#comment-27996</guid>
		<description><p>&lt;!&#8211;texy&#8211;&gt;can I add something to ENV vars on dev server and a identify it by that var?</p>
</description>
		<content:encoded><![CDATA[
<p>can I add something to ENV vars on dev server and a identify it by
that var?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
