<?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>ZD&#039;s random thoughts &#187; PHP</title>
	<atom:link href="http://zdinfo.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://zdinfo.com</link>
	<description>technology, life, and more</description>
	<lastBuildDate>Sun, 23 Jan 2011 03:18:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>When not to put debug info on your production site</title>
		<link>http://zdinfo.com/2010/02/21/when-not-to-put-debug-info-on-your-production-site/</link>
		<comments>http://zdinfo.com/2010/02/21/when-not-to-put-debug-info-on-your-production-site/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 04:28:21 +0000</pubDate>
		<dc:creator>zd</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Lenovo]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://zdinfo.com/?p=93</guid>
		<description><![CDATA[Title says it all. http://outlet.lenovo.com/report/?id=-528847430&#38;s=public SQLSTATE[HY000]: General error: 5 Out of memory (Needed 25165796 bytes) Trace: #0 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo-&#62;_execute(Array) #1 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Abstract.php(457): Zend_Db_Statement-&#62;execute(Array) #2 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract-&#62;query('SELECT COUNT(DI...', Array) #3 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Db/Adapter/Pdo/Mysql.php(281): Zend_Db_Adapter_Pdo_Abstract-&#62;query('SELECT COUNT(DI...', Array) #4 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Abstract.php(761): Varien_Db_Adapter_Pdo_Mysql-&#62;query(Object(Varien_Db_Select), Array) #5 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Data/Collection/Db.php(162): Zend_Db_Adapter_Abstract-&#62;fetchOne(Object(Varien_Db_Select), Array) &#8230; <a href="http://zdinfo.com/2010/02/21/when-not-to-put-debug-info-on-your-production-site/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Title says it all.</p>
<p><a href="http://outlet.lenovo.com/report/?id=-528847430&amp;s=public">http://outlet.lenovo.com/report/?id=-528847430&amp;s=public</a></p>
<pre>SQLSTATE[HY000]: General error: 5 Out of memory (Needed 25165796 bytes)
<strong>Trace:</strong>
#0 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Statement.php(283): Zend_Db_Statement_Pdo-&gt;_execute(Array)
#1 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Abstract.php(457): Zend_Db_Statement-&gt;execute(Array)
#2 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Pdo/Abstract.php(230): Zend_Db_Adapter_Abstract-&gt;query('SELECT COUNT(DI...', Array)
#3 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Db/Adapter/Pdo/Mysql.php(281): Zend_Db_Adapter_Pdo_Abstract-&gt;query('SELECT COUNT(DI...', Array)
#4 /chroot/home/lenovoco/lenovo.com/html/lib/Zend/Db/Adapter/Abstract.php(761): Varien_Db_Adapter_Pdo_Mysql-&gt;query(Object(Varien_Db_Select), Array)
#5 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Data/Collection/Db.php(162): Zend_Db_Adapter_Abstract-&gt;fetchOne(Object(Varien_Db_Select), Array)
#6 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Data/Collection.php(188): Varien_Data_Collection_Db-&gt;getSize()
#7 /chroot/home/lenovoco/lenovo.com/html/lib/Varien/Data/Collection.php(174): Varien_Data_Collection-&gt;getLastPageNumber()
#8 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(928): Varien_Data_Collection-&gt;getCurPage()
#9 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(784): Mage_Eav_Model_Entity_Collection_Abstract-&gt;_loadEntities(false, false)
#10 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Catalog/Block/Product/List.php(167): Mage_Eav_Model_Entity_Collection_Abstract-&gt;load()
#11 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(642): Mage_Catalog_Block_Product_List-&gt;_beforeToHtml()
#12 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract-&gt;toHtml()
#13 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract-&gt;_getChildHtml('product_list', true)
#14 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Catalog/Block/Category/View.php(81): Mage_Core_Block_Abstract-&gt;getChildHtml('product_list')
#15 /chroot/home/lenovoco/lenovo.com/html/app/design/frontend/default/outlet/template/catalog/category/view.phtml(75): Mage_Catalog_Block_Category_View-&gt;getProductListHtml()
#16 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(144): include('/chroot/home/le...')
#17 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template-&gt;fetchView('frontend/defaul...')
#18 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template-&gt;renderView()
#19 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template-&gt;_toHtml()
#20 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract-&gt;toHtml()
#21 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Text_List-&gt;_toHtml()
#22 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(503): Mage_Core_Block_Abstract-&gt;toHtml()
#23 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(454): Mage_Core_Block_Abstract-&gt;_getChildHtml('content', true)
#24 /chroot/home/lenovoco/lenovo.com/html/app/design/frontend/default/outlet/template/page/3columns.phtml(74): Mage_Core_Block_Abstract-&gt;getChildHtml('content')
#25 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(144): include('/chroot/home/le...')
#26 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(176): Mage_Core_Block_Template-&gt;fetchView('frontend/defaul...')
#27 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Template.php(193): Mage_Core_Block_Template-&gt;renderView()
#28 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Block/Abstract.php(643): Mage_Core_Block_Template-&gt;_toHtml()
#29 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Model/Layout.php(526): Mage_Core_Block_Abstract-&gt;toHtml()
#30 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php(347): Mage_Core_Model_Layout-&gt;getOutput()
#31 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Catalog/controllers/CategoryController.php(115): Mage_Core_Controller_Varien_Action-&gt;renderLayout()
#32 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Mage_Catalog_CategoryController-&gt;viewAction()
#33 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action-&gt;dispatch('view')
#34 /chroot/home/lenovoco/lenovo.com/html/app/code/community/ArtsOnIT/OfflineMaintenance/Controller/Router/Standard.php(46): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http))
#35 /chroot/home/lenovoco/lenovo.com/html/app/code/core/Mage/Core/Controller/Varien/Front.php(158): ArtsOnIT_OfflineMaintenance_Controller_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http))
#36 /chroot/home/lenovoco/lenovo.com/html/app/Mage.php(459): Mage_Core_Controller_Varien_Front-&gt;dispatch()
#37 /chroot/home/lenovoco/lenovo.com/html/index.php(65): Mage::run()
#38 {main}</pre>
]]></content:encoded>
			<wfw:commentRss>http://zdinfo.com/2010/02/21/when-not-to-put-debug-info-on-your-production-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Social Networking Sites</title>
		<link>http://zdinfo.com/2009/02/20/building-social-networking-sites/</link>
		<comments>http://zdinfo.com/2009/02/20/building-social-networking-sites/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 16:36:06 +0000</pubDate>
		<dc:creator>zd</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[apache shindig]]></category>
		<category><![CDATA[ellg]]></category>
		<category><![CDATA[OpenSocial]]></category>
		<category><![CDATA[Partuza]]></category>
		<category><![CDATA[ucenter home]]></category>

		<guid isPermaLink="false">http://zdinfo.com/?p=30</guid>
		<description><![CDATA[While some people prefer a public social networking sites like Facebook or MySpace, others prefer a private ones, or private-label sites. There are many decisions to make when deciding to go with privates social networking sites. If you hate the &#8230; <a href="http://zdinfo.com/2009/02/20/building-social-networking-sites/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While some people prefer a public social networking sites like Facebook or MySpace, others prefer a private ones, or private-label sites.</p>
<p>There are many decisions to make when deciding to go with privates social networking sites. If you hate the administrative overhead, there are some &#8220;freemium&#8221; type of hosting services such as Ning and CollectiveX. Basically you can either a &#8220;free&#8221; private social networking site with a vender host name like yournetwork.ning.com or yourname.collectivex.com, or you can cough out some monthly subscription fee to use your own domain and some advanced features. And apparently these hosting providers put ads on the free sites to cover their cost (and sometimes to make a profit).</p>
<p>If you want DIY, there are options, too. Some open source packages exist there. Ellg is a PHP based open source social networking framework, and Community Engine is a Rails based one. If you want to stick to OpenSocial standards, Apache&#8217;s Shindig is worth looking into. In addition, Shindig has implementations in both Java and PHP. Partuza is an example open source social networking that uses Shindig implementation of PHP.</p>
<p>There is another PHP based open source social networking project called U Center Home. It looks nice. However, I am confused by its license. On their sourceforge page, the license is GPL, while on their corporate site, the license says &#8211; &#8220;free for personal/non-profit use&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://zdinfo.com/2009/02/20/building-social-networking-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

