<?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: Run Magento Code Outside of Magento</title>
	<atom:link href="http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php</link>
	<description>Magento Design and Development Information</description>
	<lastBuildDate>Mon, 10 Jan 2011 07:35:46 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ss</title>
		<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/comment-page-2#comment-1112</link>
		<dc:creator>ss</dc:creator>
		<pubDate>Thu, 16 Dec 2010 09:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.exploremagento.com/?p=142#comment-1112</guid>
		<description>Please help, in error log I recived 
&quot;There has been an error processing your request

Mage registry key &quot;controller&quot; already existsTrace:

#0 \magento\app\Mage.php(192): Mage::throwException(&#039;Mage registry k...&#039;)
#1 \magento\app\code\core\Mage\Core\Model\App.php(667): Mage::register(&#039;controller&#039;, Object(Mage_Core_Controller_Varien_Front))
#2 \magento\app\code\core\Mage\Core\Model\App.php(1011): Mage_Core_Model_App-&gt;_initFrontController()
#3 \magento\app\code\core\Mage\Core\Model\App.php(304): Mage_Core_Model_App-&gt;getFrontController()
#4 \magento\app\Mage.php(596): Mage_Core_Model_App-&gt;run(Array)
#5 \magento\index.php(7): Mage::run()
#6 {main}



my php code is:

require_once &#039;app/Mage.php&#039;;
umask(0);
Mage::app();
$session = Mage::getSingleton(&#039;customer/session&#039;);
if ($session-&gt;isLoggedIn()) {
Mage::run();
} else {
$session-&gt;login(&quot;[USERNAME]&quot;, &quot;[PASSWORD]&quot; ); //
$session-&gt;setCustomerAsLoggedIn($session-&gt;getCustomer());
Mage::run();
}</description>
		<content:encoded><![CDATA[<p>Please help, in error log I recived<br />
&#8220;There has been an error processing your request</p>
<p>Mage registry key &#8220;controller&#8221; already existsTrace:</p>
<p>#0 \magento\app\Mage.php(192): Mage::throwException(&#8217;Mage registry k&#8230;&#8217;)<br />
#1 \magento\app\code\core\Mage\Core\Model\App.php(667): Mage::register(&#8217;controller&#8217;, Object(Mage_Core_Controller_Varien_Front))<br />
#2 \magento\app\code\core\Mage\Core\Model\App.php(1011): Mage_Core_Model_App-&gt;_initFrontController()<br />
#3 \magento\app\code\core\Mage\Core\Model\App.php(304): Mage_Core_Model_App-&gt;getFrontController()<br />
#4 \magento\app\Mage.php(596): Mage_Core_Model_App-&gt;run(Array)<br />
#5 \magento\index.php(7): Mage::run()<br />
#6 {main}</p>
<p>my php code is:</p>
<p>require_once &#8216;app/Mage.php&#8217;;<br />
umask(0);<br />
Mage::app();<br />
$session = Mage::getSingleton(&#8217;customer/session&#8217;);<br />
if ($session-&gt;isLoggedIn()) {<br />
Mage::run();<br />
} else {<br />
$session-&gt;login(&#8221;[USERNAME]&#8220;, &#8220;[PASSWORD]&#8221; ); //<br />
$session-&gt;setCustomerAsLoggedIn($session-&gt;getCustomer());<br />
Mage::run();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meissen</title>
		<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/comment-page-2#comment-1052</link>
		<dc:creator>Meissen</dc:creator>
		<pubDate>Thu, 14 Oct 2010 12:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.exploremagento.com/?p=142#comment-1052</guid>
		<description>thanks to all writers</description>
		<content:encoded><![CDATA[<p>thanks to all writers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magento Experts</title>
		<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/comment-page-2#comment-1019</link>
		<dc:creator>Magento Experts</dc:creator>
		<pubDate>Tue, 17 Aug 2010 06:07:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.exploremagento.com/?p=142#comment-1019</guid>
		<description>I never knew it can be done in magento. Thanks for Sharing.

Thanks
Magento Experts</description>
		<content:encoded><![CDATA[<p>I never knew it can be done in magento. Thanks for Sharing.</p>
<p>Thanks<br />
Magento Experts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbditto</title>
		<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/comment-page-2#comment-978</link>
		<dc:creator>sbditto</dc:creator>
		<pubDate>Thu, 10 Jun 2010 17:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.exploremagento.com/?p=142#comment-978</guid>
		<description>@iwalon check out this blog article for wordpress
http://mysillypointofview.wordpress.com/2010/04/08/how-to-use-magentos-session-within-wordpress/</description>
		<content:encoded><![CDATA[<p>@iwalon check out this blog article for wordpress<br />
<a href="http://mysillypointofview.wordpress.com/2010/04/08/how-to-use-magentos-session-within-wordpress/" rel="nofollow">http://mysillypointofview.wordpress.com/2010/04/08/how-to-use-magentos-session-within-wordpress/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajay</title>
		<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/comment-page-2#comment-974</link>
		<dc:creator>ajay</dc:creator>
		<pubDate>Sat, 05 Jun 2010 06:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.exploremagento.com/?p=142#comment-974</guid>
		<description>this is poor site..it does not describe properly step by step........</description>
		<content:encoded><![CDATA[<p>this is poor site..it does not describe properly step by step&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kealy</title>
		<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/comment-page-2#comment-955</link>
		<dc:creator>Kealy</dc:creator>
		<pubDate>Mon, 03 May 2010 19:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.exploremagento.com/?p=142#comment-955</guid>
		<description>Hi. I am running the $session-&gt;isLoggedIn() script on my localhost. I have successfully been able to run this script outside of magento on a linux server, however on my Windows localhost, a new session is started when i attempt to run this script. Any idea on how I can make these Session Id&#039;s match up?</description>
		<content:encoded><![CDATA[<p>Hi. I am running the $session-&gt;isLoggedIn() script on my localhost. I have successfully been able to run this script outside of magento on a linux server, however on my Windows localhost, a new session is started when i attempt to run this script. Any idea on how I can make these Session Id&#8217;s match up?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iwalon</title>
		<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/comment-page-2#comment-954</link>
		<dc:creator>iwalon</dc:creator>
		<pubDate>Mon, 03 May 2010 02:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.exploremagento.com/?p=142#comment-954</guid>
		<description>This works perfectly except if the page is inside wordpress it seems not to work any ideas?</description>
		<content:encoded><![CDATA[<p>This works perfectly except if the page is inside wordpress it seems not to work any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vesvello</title>
		<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/comment-page-2#comment-920</link>
		<dc:creator>vesvello</dc:creator>
		<pubDate>Mon, 05 Apr 2010 20:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.exploremagento.com/?p=142#comment-920</guid>
		<description>I am trying to run magento code from externl page with this: 
require_once &#039;app/Mage.php&#039;; 
umask(0); 
Mage::app();
but averytime I run the page I got this: 
The webpage at http://www.midominio.com/ has resulted in too many redirects.

Any ideas?</description>
		<content:encoded><![CDATA[<p>I am trying to run magento code from externl page with this:<br />
require_once &#8216;app/Mage.php&#8217;;<br />
umask(0);<br />
Mage::app();<br />
but averytime I run the page I got this:<br />
The webpage at <a href="http://www.midominio.com/" rel="nofollow">http://www.midominio.com/</a> has resulted in too many redirects.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omer</title>
		<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/comment-page-2#comment-870</link>
		<dc:creator>Omer</dc:creator>
		<pubDate>Wed, 24 Feb 2010 23:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.exploremagento.com/?p=142#comment-870</guid>
		<description>you are a life saver, thank you</description>
		<content:encoded><![CDATA[<p>you are a life saver, thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Domi</title>
		<link>http://www.exploremagento.com/magento/run-magento-code-outside-of-magento.php/comment-page-2#comment-868</link>
		<dc:creator>Domi</dc:creator>
		<pubDate>Mon, 22 Feb 2010 16:21:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.exploremagento.com/?p=142#comment-868</guid>
		<description>yeah, nice one! thx 4 that!</description>
		<content:encoded><![CDATA[<p>yeah, nice one! thx 4 that!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

