<?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>unexpected[it] &#187; Snippets</title>
	<atom:link href="http://www.unexpectedit.com/category/magento/snippets/feed" rel="self" type="application/rss+xml" />
	<link>http://www.unexpectedit.com</link>
	<description>Professional IT Blog</description>
	<lastBuildDate>Tue, 31 Jan 2012 21:55:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Magento Get Database Config</title>
		<link>http://www.unexpectedit.com/magento/snippets/magento-get-database-config</link>
		<comments>http://www.unexpectedit.com/magento/snippets/magento-get-database-config#comments</comments>
		<pubDate>Mon, 14 Jun 2010 19:24:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[getConfig]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.unexpectedit.com/?p=107</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
//Get Database Config
$config = Mage::getConfig()-&gt;getResourceConnectionConfig(&quot;default_setup&quot;);
$Server = $config-&gt;host;
$User = $config-&gt;username;
$Password = $config-&gt;password;
//[...]
</pre>
<div id="wpcr_respond_1"></div>]]></content:encoded>
			<wfw:commentRss>http://www.unexpectedit.com/magento/snippets/magento-get-database-config/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

