<?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>Digitivity &#187; PHP</title>
	<atom:link href="http://digitivity.org/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://digitivity.org</link>
	<description>The Digital Productivity Blog</description>
	<lastBuildDate>Sat, 24 Dec 2011 17:34:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Nginx: A Faster Alternative to Apache</title>
		<link>http://digitivity.org/1187/nginx-a-faster-alternative-to-apache-tutorial</link>
		<comments>http://digitivity.org/1187/nginx-a-faster-alternative-to-apache-tutorial#comments</comments>
		<pubDate>Mon, 14 Nov 2011 18:40:12 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Web/Software Development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP-FPM]]></category>
		<category><![CDATA[PHP-PFM]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://digitivity.org/?p=1187</guid>
		<description><![CDATA[<p>Posted in <a href="http://digitivity.org/category/websoftware-development" title="Web/Software Development">Web/Software Development</a></p>Most websites use a combination of the Apache webserver and PHP. But <a href="http://nginx.org/">Nginx</a> (pronounce "engine-x") can be a lot faster than Apache, especially for serving static files. Combine that with using <a href="http://php-fpm.org/about/">PHP-PFM</a>, and you have a speed demon. Here's a <a href="http://arstechnica.com/business/news/2011/11/a-faster-web-server-ripping-out-apache-for-nginx.ars">tutorial</a> on how to replace your current setup with Nginx and PHP-PFM.


Related posts:<ol><li><a href='http://digitivity.org/146/firefox-31-beta-has-new-faster-tracemonkey-javascript-engine' rel='bookmark' title='Permanent Link: Firefox 3.1 Beta Has New, Faster TraceMonkey Javascript Engine'>Firefox 3.1 Beta Has New, Faster TraceMonkey Javascript Engine</a></li>
<li><a href='http://digitivity.org/771/facebook-announces-a-better-faster-php-hiphop-php-c-plus-plus-compiler' rel='bookmark' title='Permanent Link: Facebook Announces a Better, Faster PHP: HipHop PHP'>Facebook Announces a Better, Faster PHP: HipHop PHP</a></li>
<li><a href='http://digitivity.org/1148/feather-beta-how-make-slow-youtube-faster-speed' rel='bookmark' title='Permanent Link: Feather Beta: How to Make YouTube Faster'>Feather Beta: How to Make YouTube Faster</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Most websites use a combination of the Apache webserver and PHP. But <a href="http://nginx.org/">Nginx</a> (pronounce &#8220;engine-x&#8221;) can be a lot faster than Apache, especially for serving static files. Combine that with using <a href="http://php-fpm.org/about/">PHP-FPM</a>, and you have a speed demon. Here&#8217;s a <a href="http://arstechnica.com/business/news/2011/11/a-faster-web-server-ripping-out-apache-for-nginx.ars">tutorial</a> on how to replace your current setup with Nginx and PHP-FPM.</p>


<p>Related posts:<ol><li><a href='http://digitivity.org/146/firefox-31-beta-has-new-faster-tracemonkey-javascript-engine' rel='bookmark' title='Permanent Link: Firefox 3.1 Beta Has New, Faster TraceMonkey Javascript Engine'>Firefox 3.1 Beta Has New, Faster TraceMonkey Javascript Engine</a></li>
<li><a href='http://digitivity.org/771/facebook-announces-a-better-faster-php-hiphop-php-c-plus-plus-compiler' rel='bookmark' title='Permanent Link: Facebook Announces a Better, Faster PHP: HipHop PHP'>Facebook Announces a Better, Faster PHP: HipHop PHP</a></li>
<li><a href='http://digitivity.org/1148/feather-beta-how-make-slow-youtube-faster-speed' rel='bookmark' title='Permanent Link: Feather Beta: How to Make YouTube Faster'>Feather Beta: How to Make YouTube Faster</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/1187/nginx-a-faster-alternative-to-apache-tutorial/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Magento Alternatives: PrestaShop and Drupal Commerce</title>
		<link>http://digitivity.org/1060/magento-alternatives-prestashop-and-drupal-commerce</link>
		<comments>http://digitivity.org/1060/magento-alternatives-prestashop-and-drupal-commerce#comments</comments>
		<pubDate>Sun, 11 Sep 2011 16:08:09 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Software and Downloads]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Drupal 7]]></category>
		<category><![CDATA[Drupal Commerce]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[e-commerce application]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PrestaShop]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://digitivity.org/?p=1060</guid>
		<description><![CDATA[<p>Posted in <a href="http://digitivity.org/category/software-and-downloads" title="Software and Downloads">Software and Downloads</a></p>With Magento having been bought by EBay, some people think it's future is insecure as an open-source e-commerce platform and are looking for alternatives.

I looked around and found two: PrestaShop and Drupal Commerce.

Read on for more about them.


Related posts:<ol><li><a href='http://digitivity.org/1081/shopmanager-for-prestashop-a-prestashop-desktop-application' rel='bookmark' title='Permanent Link: ShopManager for PrestaShop: A PrestaShop Desktop Application'>ShopManager for PrestaShop: A PrestaShop Desktop Application</a></li>
<li><a href='http://digitivity.org/1057/ebay-buys-magento-e-commerce-package' rel='bookmark' title='Permanent Link: EBay Buys Magento E-Commerce Package'>EBay Buys Magento E-Commerce Package</a></li>
<li><a href='http://digitivity.org/1073/free-drupal-seo-download' rel='bookmark' title='Permanent Link: Free Drupal SEO Download'>Free Drupal SEO Download</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>With <a href="http://digitivity.org/1057/ebay-buys-magento-e-commerce-package">Magento having been bought by EBay</a>, some people think it&#8217;s future is insecure as an open-source e-commerce platform and are looking for <strong>alternatives</strong>.</p>
<p>I looked around and found two for this e-commerce application comparison: <a href="http://www.prestashop.com/"><strong>PrestaShop</strong></a> and <a href="http://www.drupalcommerce.org/"><strong>Drupal Commerce</strong></a>.</p>
<p>Actually, there&#8217;s another good one: <a href="http://www.ubercart.org/"><strong>UberCart</strong></a>, which is an e-commerce module for <strong>Drupal 6</strong>. But since Drupal Commerce is the evolution of UberCart, it seems there&#8217;s no reason to go with Drupal 6 and UberCart if you&#8217;re starting a new site. You might as well pair <strong>Drupal 7</strong> with Drupal Commerce.</p>
<h2>PrestaShop</h2>
<p>PrestaShop is an open-source e-commerce application based on PHP.</p>
<p><a href="http://digitivity.org/blog/wp-content/uploads/2011/09/prestashop-archiduchesse.jpg"><img src="http://digitivity.org/blog/wp-content/uploads/2011/09/prestashop-archiduchesse.jpg" alt="" title="prestashop-archiduchesse" width="500" height="375" class="alignnone size-full wp-image-1065" /></a></p>
<p>Plus points for PrestaShop:</p>
<ul>
<li>More popular than Drupal Commerce (<a href="http://www.alexa.com/search?q=http://www.prestashop.com/&amp;r=home_home&amp;p=bigtop">1472 Alexa rank</a> vs. <a href="http://www.alexa.com/search?q=http://www.drupalcommerce.org/&amp;r=home_home&amp;p=bigtop">76968 for Drupal Commerce</a>)</li>
<li>90,000 shops use it</li>
<li>256,000 community members</li>
<li>Seems easier to use and get going</li>
<li>256 major <a href="http://www.prestashop.com/en/allfeatures">features</a></li>
</ul>
<p>Possible cons for PrestaShop:</p>
<ul>
<li>Runs on MySQL only. Drupal and Drupal Commerce also support PostgreSQL</li>
<li>Based out of France. I don&#8217;t think that should be too much of a problem, though. European payment methods are supported, but then so art the major American ones (Authorize.net and PayPal)</li>
</ul>
<h2>Drupal Commerce</h2>
<p>Drupal Commerce is implemented as a series of <a href="http://drupal.org/project/commerce">modules</a> for Drupal. There&#8217;s also an <a href="http://www.drupalcommerce.org/node/314">installation profile</a> to allow you to easily install it along with the Drupal base.</p>
<p><a href="http://digitivity.org/blog/wp-content/uploads/2011/09/drupal-commerce-demo.png"><img src="http://digitivity.org/blog/wp-content/uploads/2011/09/drupal-commerce-demo-512x314.png" alt="" title="drupal-commerce-demo" width="512" height="314" class="alignnone size-medium wp-image-1066" /></a></p>
<p>Pros for Drupal Commerce:</p>
<ul>
<li>Based on Drupal. You get hundreds of Drupal <a href="http://drupal.org/project/modules">modules</a> that you can integrate to get great general content management and website functionality.</li>
<li>While the PrestaShop site is more popular than Drupal Commerce&#8217;s, Drupal is much more popular at <a href="http://www.alexa.com/search?q=drupal.org&#038;r=home_home&#038;p=bigtop">Alexa rank 396</a> than PrestaShop. You won&#8217;t be alone while using Drupal.</li>
<li>Drupal Commerce is based on Drupal 7, a highly modular and modern CMS base. I know this seems repetitive, but 7 is a big plus for Drupal Commerce because of the flexibility it offers.</li>
</ul>
<p>Negatives for Drupal Commerce:</p>
<ul>
<li>I think Drupal Commerce has less commerce-related <a href="http://www.drupalcommerce.org/contrib">modules</a> (such as for payment) than PrestaShop. Many of those are still under development.</li>
</ul>
<h2>Summary</h2>
<p>All in all, I think Drupal Commerce has the potential to be a great e-commerce environment combined with the general content management power of Drupal. If you&#8217;re looking for something easy and specifically already oriented toward e-commerce, PrestaShop might be better.</p>


<p>Related posts:<ol><li><a href='http://digitivity.org/1081/shopmanager-for-prestashop-a-prestashop-desktop-application' rel='bookmark' title='Permanent Link: ShopManager for PrestaShop: A PrestaShop Desktop Application'>ShopManager for PrestaShop: A PrestaShop Desktop Application</a></li>
<li><a href='http://digitivity.org/1057/ebay-buys-magento-e-commerce-package' rel='bookmark' title='Permanent Link: EBay Buys Magento E-Commerce Package'>EBay Buys Magento E-Commerce Package</a></li>
<li><a href='http://digitivity.org/1073/free-drupal-seo-download' rel='bookmark' title='Permanent Link: Free Drupal SEO Download'>Free Drupal SEO Download</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/1060/magento-alternatives-prestashop-and-drupal-commerce/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>EBay Buys Magento E-Commerce Package</title>
		<link>http://digitivity.org/1057/ebay-buys-magento-e-commerce-package</link>
		<comments>http://digitivity.org/1057/ebay-buys-magento-e-commerce-package#comments</comments>
		<pubDate>Fri, 09 Sep 2011 08:20:49 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[acquisition]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[EBay]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[professional open-source]]></category>

		<guid isPermaLink="false">http://digitivity.org/?p=1057</guid>
		<description><![CDATA[<p>Posted in <a href="http://digitivity.org/category/news" title="News">News</a></p>EBay is going to buy Magento, a PHP-based E-commerce package. It had previously bought 49% of it for $22.5 million.

Will this combine the best strengths of each, or the worst?


Related posts:<ol><li><a href='http://digitivity.org/1060/magento-alternatives-prestashop-and-drupal-commerce' rel='bookmark' title='Permanent Link: Magento Alternatives: PrestaShop and Drupal Commerce'>Magento Alternatives: PrestaShop and Drupal Commerce</a></li>
<li><a href='http://digitivity.org/1081/shopmanager-for-prestashop-a-prestashop-desktop-application' rel='bookmark' title='Permanent Link: ShopManager for PrestaShop: A PrestaShop Desktop Application'>ShopManager for PrestaShop: A PrestaShop Desktop Application</a></li>
<li><a href='http://digitivity.org/1044/rss-kill-your-productivity-make-you-insane-waste-time' rel='bookmark' title='Permanent Link: Does RSS Kill Your Productivity and Make You Insane?'>Does RSS Kill Your Productivity and Make You Insane?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>EBay</strong> is going to <a href="http://www.magentocommerce.com/blog/comments/ebay-agrees-to-acquire-magento/">buy</a> <a href="http://www.magentocommerce.com/"><strong>Magento</strong></a>, a <strong>PHP</strong>-based open-source <strong>E-commerce</strong> package. It had previously <a href="http://gigaom.com/2011/06/06/ebay-acquires-magento-builds-a-commerce-os/">bought</a> 49% of it for $22.5 million.</p>
<p>Magento is a feature-packed e-commerce system/shopping cart. Unfortunately, it&#8217;s also <strong>overengineered</strong>. It needs to do a <a href="http://epicweb.posterous.com/why-magento-sucks-or-why-magento-is-so-slow">ton of queries</a> every time you so much as look at it, leading to the idea of some that &#8220;<a href="http://www.google.com/search?q=magento+sucks">magento sucks</a>&#8220;.</p>
<p>Combine that with the already widespread impression that &#8220;<a href="http://www.google.com/search?q=ebay+sucks">ebay sucks</a>&#8221; , and you seem to have a recipe for either disaster, evil, or <strong>worldwide domination</strong>, depending on your perspective.</p>
<p>There&#8217;s already a feeling (perhaps unfair) that Magento has gotten to the point where it&#8217;s more oriented toward companies paying <a href="http://www.magentocommerce.com/product/compare">thousands of dollars</a> a year for support.  So what will <strong>smaller startups</strong> look to now for their e-commerce needs?</p>


<p>Related posts:<ol><li><a href='http://digitivity.org/1060/magento-alternatives-prestashop-and-drupal-commerce' rel='bookmark' title='Permanent Link: Magento Alternatives: PrestaShop and Drupal Commerce'>Magento Alternatives: PrestaShop and Drupal Commerce</a></li>
<li><a href='http://digitivity.org/1081/shopmanager-for-prestashop-a-prestashop-desktop-application' rel='bookmark' title='Permanent Link: ShopManager for PrestaShop: A PrestaShop Desktop Application'>ShopManager for PrestaShop: A PrestaShop Desktop Application</a></li>
<li><a href='http://digitivity.org/1044/rss-kill-your-productivity-make-you-insane-waste-time' rel='bookmark' title='Permanent Link: Does RSS Kill Your Productivity and Make You Insane?'>Does RSS Kill Your Productivity and Make You Insane?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/1057/ebay-buys-magento-e-commerce-package/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Drupal Symfony2 Integration</title>
		<link>http://digitivity.org/973/drupal-symfony2-integration</link>
		<comments>http://digitivity.org/973/drupal-symfony2-integration#comments</comments>
		<pubDate>Sat, 05 Mar 2011 16:58:00 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Symfony2]]></category>

		<guid isPermaLink="false">http://digitivity.org/973/drupal-symfony2-integration</guid>
		<description><![CDATA[<p>Posted in <a href="http://digitivity.org/tumblog/links">Links</a></p><p><a href="https://gist.github.com/856350" rel="bookmark" title="Drupal Symfony2 Integration" target="_blank">https://gist.github.com/856350</a></p>Drupal 7 combined with possibly the best PHP OO framework. Related posts:Drupal Symfony2 Integration From flat PHP to Symfony2 Does RSS Kill Your Productivity and Make You Insane?


Related posts:<ol><li><a href='http://digitivity.org/974/drupal-symfony2-integration-2' rel='bookmark' title='Permanent Link: Drupal Symfony2 Integration'>Drupal Symfony2 Integration</a></li>
<li><a href='http://digitivity.org/975/from-flat-php-to-symfony2' rel='bookmark' title='Permanent Link: From flat PHP to Symfony2'>From flat PHP to Symfony2</a></li>
<li><a href='http://digitivity.org/1044/rss-kill-your-productivity-make-you-insane-waste-time' rel='bookmark' title='Permanent Link: Does RSS Kill Your Productivity and Make You Insane?'>Does RSS Kill Your Productivity and Make You Insane?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Drupal 7 combined with possibly the best PHP OO framework.</p>


<p>Related posts:<ol><li><a href='http://digitivity.org/974/drupal-symfony2-integration-2' rel='bookmark' title='Permanent Link: Drupal Symfony2 Integration'>Drupal Symfony2 Integration</a></li>
<li><a href='http://digitivity.org/975/from-flat-php-to-symfony2' rel='bookmark' title='Permanent Link: From flat PHP to Symfony2'>From flat PHP to Symfony2</a></li>
<li><a href='http://digitivity.org/1044/rss-kill-your-productivity-make-you-insane-waste-time' rel='bookmark' title='Permanent Link: Does RSS Kill Your Productivity and Make You Insane?'>Does RSS Kill Your Productivity and Make You Insane?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/973/drupal-symfony2-integration/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Drupal Symfony2 Integration</title>
		<link>http://digitivity.org/974/drupal-symfony2-integration-2</link>
		<comments>http://digitivity.org/974/drupal-symfony2-integration-2#comments</comments>
		<pubDate>Sat, 05 Mar 2011 16:58:00 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[Symfony2]]></category>

		<guid isPermaLink="false">http://digitivity.org/974/drupal-symfony2-integration-2</guid>
		<description><![CDATA[<p>Posted in <a href="http://digitivity.org/tumblog/links">Links</a></p><p><a href="https://gist.github.com/856350" rel="bookmark" title="Drupal Symfony2 Integration" target="_blank">https://gist.github.com/856350</a></p>Drupal 7 combined with possibly the best PHP OO framework. Related posts:Drupal Symfony2 Integration Dreamhost Problems Status RSS Does RSS Kill Your Productivity and Make You Insane?


Related posts:<ol><li><a href='http://digitivity.org/973/drupal-symfony2-integration' rel='bookmark' title='Permanent Link: Drupal Symfony2 Integration'>Drupal Symfony2 Integration</a></li>
<li><a href='http://digitivity.org/781/dreamhost-server-problems-status-rss' rel='bookmark' title='Permanent Link: Dreamhost Problems Status RSS'>Dreamhost Problems Status RSS</a></li>
<li><a href='http://digitivity.org/1044/rss-kill-your-productivity-make-you-insane-waste-time' rel='bookmark' title='Permanent Link: Does RSS Kill Your Productivity and Make You Insane?'>Does RSS Kill Your Productivity and Make You Insane?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Drupal 7 combined with possibly the best PHP OO framework.</p>


<p>Related posts:<ol><li><a href='http://digitivity.org/973/drupal-symfony2-integration' rel='bookmark' title='Permanent Link: Drupal Symfony2 Integration'>Drupal Symfony2 Integration</a></li>
<li><a href='http://digitivity.org/781/dreamhost-server-problems-status-rss' rel='bookmark' title='Permanent Link: Dreamhost Problems Status RSS'>Dreamhost Problems Status RSS</a></li>
<li><a href='http://digitivity.org/1044/rss-kill-your-productivity-make-you-insane-waste-time' rel='bookmark' title='Permanent Link: Does RSS Kill Your Productivity and Make You Insane?'>Does RSS Kill Your Productivity and Make You Insane?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/974/drupal-symfony2-integration-2/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>From flat PHP to Symfony2</title>
		<link>http://digitivity.org/975/from-flat-php-to-symfony2</link>
		<comments>http://digitivity.org/975/from-flat-php-to-symfony2#comments</comments>
		<pubDate>Sat, 05 Mar 2011 16:58:00 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Web/Software Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://digitivity.org/975/from-flat-php-to-symfony2</guid>
		<description><![CDATA[<p>Posted in <a href="http://digitivity.org/tumblog/links">Links</a></p><p><a href="http://symfony.com/doc/2.0/book/from_flat_php_to_symfony2.html" rel="bookmark" title="From flat PHP to Symfony2" target="_blank">http://symfony.com/doc/2.0/book/from_flat_php_to_symfony2.html</a></p>Related posts:Facebook Announces a Better, Faster PHP: HipHop PHP Drupal Symfony2 Integration Drupal Symfony2 Integration


Related posts:<ol><li><a href='http://digitivity.org/771/facebook-announces-a-better-faster-php-hiphop-php-c-plus-plus-compiler' rel='bookmark' title='Permanent Link: Facebook Announces a Better, Faster PHP: HipHop PHP'>Facebook Announces a Better, Faster PHP: HipHop PHP</a></li>
<li><a href='http://digitivity.org/973/drupal-symfony2-integration' rel='bookmark' title='Permanent Link: Drupal Symfony2 Integration'>Drupal Symfony2 Integration</a></li>
<li><a href='http://digitivity.org/974/drupal-symfony2-integration-2' rel='bookmark' title='Permanent Link: Drupal Symfony2 Integration'>Drupal Symfony2 Integration</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://digitivity.org/tumblog/links">Links</a></p><p><a href="http://symfony.com/doc/2.0/book/from_flat_php_to_symfony2.html" rel="bookmark" title="From flat PHP to Symfony2" target="_blank">http://symfony.com/doc/2.0/book/from_flat_php_to_symfony2.html</a></p>Related posts:Facebook Announces a Better, Faster PHP: HipHop PHP Drupal Symfony2 Integration Drupal Symfony2 Integration


Related posts:<ol><li><a href='http://digitivity.org/771/facebook-announces-a-better-faster-php-hiphop-php-c-plus-plus-compiler' rel='bookmark' title='Permanent Link: Facebook Announces a Better, Faster PHP: HipHop PHP'>Facebook Announces a Better, Faster PHP: HipHop PHP</a></li>
<li><a href='http://digitivity.org/973/drupal-symfony2-integration' rel='bookmark' title='Permanent Link: Drupal Symfony2 Integration'>Drupal Symfony2 Integration</a></li>
<li><a href='http://digitivity.org/974/drupal-symfony2-integration-2' rel='bookmark' title='Permanent Link: Drupal Symfony2 Integration'>Drupal Symfony2 Integration</a></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/975/from-flat-php-to-symfony2/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Facebook Announces a Better, Faster PHP: HipHop PHP</title>
		<link>http://digitivity.org/771/facebook-announces-a-better-faster-php-hiphop-php-c-plus-plus-compiler</link>
		<comments>http://digitivity.org/771/facebook-announces-a-better-faster-php-hiphop-php-c-plus-plus-compiler#comments</comments>
		<pubDate>Wed, 03 Feb 2010 17:52:31 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[HipHop]]></category>
		<category><![CDATA[HPHP]]></category>
		<category><![CDATA[HPHPi]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://digitivity.org/?p=771</guid>
		<description><![CDATA[<p>Posted in <a href="http://digitivity.org/category/audience/developer" title="Developer">Developer</a></p>PHP is the programming language that runs many web applications, including WordPress. PHP's slower than many other languages, but it's fast to develop in.

Now Facebook, which also runs on PHP, has announced a new version of PHP that runs twice as fast. 



Related posts:<ol><li><a href='http://digitivity.org/165/how-facebook-runs-php-and-mysql' rel='bookmark' title='Permanent Link: How Facebook Runs PHP and MySQL'>How Facebook Runs PHP and MySQL</a></li>
<li><a href='http://digitivity.org/1034/heises-2-click-solution-for-facebook-privacy' rel='bookmark' title='Permanent Link: Heise&#8217;s 2-Click Solution for Facebook Privacy'>Heise&#8217;s 2-Click Solution for Facebook Privacy</a></li>
<li><a href='http://digitivity.org/1111/facebook-timeline-will-let-you-know-who-unfriended-you' rel='bookmark' title='Permanent Link: Facebook Timeline Will Let You Know Who Unfriended You'>Facebook Timeline Will Let You Know Who Unfriended You</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>PHP</strong> is the <strong>programming language</strong> that runs many web applications, including <strong>WordPress</strong>. PHP&#8217;s slower than many other languages, but it&#8217;s fast to develop in.</p>
<p>Now <strong>Facebook</strong>, which also runs on PHP, has <a href="http://developers.facebook.com/news.php?blog=1&amp;story=358">announced</a> a <strong>new version</strong> of PHP that runs <strong>twice as fast</strong>.</p>
<p>This also means that if you have a popular <strong>WordPress blog</strong>, you might only have to have <strong>half the server size</strong> you use now.</p>
<h2>How PHP Works</h2>
<p><img class="alignleft size-full wp-image-774" title="Turtle" src="http://digitivity.org/blog/wp-content/uploads/2010/02/1191761_turtle_2.jpg" alt="Turtle" width="100" height="74" /><br />
<strong> PHP</strong>, in its usual incarnation, is an <strong>interpreted language</strong>. This means that a program (such as a PHP module in the Apache webserver) reads the PHP instructions in your script and executes them in turn. Every time the PHP script is executed, it has to be turned into machine code, even if the script runs 1000 times per hour. Obviously, this is <strong>inefficient</strong>, but people put up with it because PHP is considered easier to develop in than other languages.</p>
<p><img src="http://digitivity.org/blog/wp-content/uploads/2010/02/985320_rabbit.jpg" alt="Rabbit" title="Rabbit" width="100" height="75" class="alignleft size-full wp-image-776" /><br />
By comparison, <strong>C++</strong> is a language which is usually <strong>compiled</strong> (changed to machine instructions which run directly on the <strong>CPU</strong>). This happens only once, and every time the program runs, it runs <strong>directly</strong> on the processor. Because there&#8217;s no intermediate  interpretation step, C++ programs run <strong>much faster</strong>.</p>
<h2>Facebook&#8217;s HipHop PHP</h2>
<p><strong>Facebook</strong> announced what they are calling <strong>HipHop PHP</strong>, which translates PHP into <strong>C++</strong>. Then you use <tt>g++</tt>, the GNU C++ compiler, to compile the C++ program.</p>
<p>Here&#8217;s how the process works:</p>
<div id="attachment_772" class="wp-caption alignnone" style="width: 522px"><a href="http://digitivity.org/blog/wp-content/uploads/2010/02/HipHop_transformation_process.png"><img class="size-medium wp-image-772" title="HipHop PHP Transformation Process" src="http://digitivity.org/blog/wp-content/uploads/2010/02/HipHop_transformation_process-512x320.png" alt="HipHop PHP Transformation Process" width="512" height="320" /></a><p class="wp-caption-text">HipHop PHP Transformation Process</p></div>
<p>Facebook says compilation of their PHP code results in <strong>savings of 50%</strong> in server usage.</p>
<p>They also released <strong>HPHPi</strong>, which is an optimized <strong>PHP interpreter</strong> that doesn&#8217;t require you re-compile your code.</p>
<h3>Download HipHop PHP</h3>
<p>Facebook is going to <strong>release</strong> the code to <strong>HPHP</strong> under the PHP license on <strong>Github</strong> for download at this <a href="http://github.com/facebook/hiphop-php/wikis">address</a> (but it&#8217;s not there yet).</p>
<h2>Caveats</h2>
<p>In order to optimize PHP to the maximum, they left out some rarely used dynamic functionality, such as the <tt>eval()</tt> function.</p>
<p>I&#8217;ll report more on <strong>HipHop PHP</strong> as Facebook releases more information.</p>
<h2>Resources</h2>
<p><a href="http://developers.facebook.com/news.php?blog=1&amp;story=358">Facebook HipHop PHP announcement</a></p>
<p><a href="http://www.ustream.tv/recorded/4409735">HipHop release video</a></p>
<p><a href="http://groups.google.com/group/hiphop-php-dev">Facebook HipHop developer mailing list</a></p>
<p><a href="http://blogs.zdnet.com/BTL/?p=30331">ZDNet article</a></p>
<p><a href="http://www.brandonsavage.net/hiphop-for-php-who-benefits-who-doesnt/">HipHop for PHP: Who Benefits?</a></p>
<p><a href="http://www.besttechie.net/2010/02/02/facebook-introduces-hiphop-for-php/">BestTechie article</a></p>
<p><a href="http://feed2meme.com/2010/02/03/facebook-hopes-to-revolutionize-php-with-“hip-hop”/">Feed2Meme article</a></p>
<p><a href="http://www.developer.com/lang/php/article.php/3862461/Facebooks-HipHop-Goes-Public-With-a-New-PHP-Runtime.htm">Facebook&#8217;s HipHop Goes Public With a New PHP Runtime</a></p>
<p><a href="http://www.phpcompiler.org/">PHPC: A PHP Compiler</a></p>
<p><a href="http://www.roadsend.com/home/index.php">Roadsend PHP compiler</a></p>
<p><a href="http://therumpus.net/2010/01/conversations-about-the-internet-5-anonymous-facebook-employee/?full=yes">An interview with a Facebook employee about PHP</a></p>
<p><a href="http://www.taranfx.com/facebook-php-hiphop-open-source">PHP Facebook release</a></p>


<p>Related posts:<ol><li><a href='http://digitivity.org/165/how-facebook-runs-php-and-mysql' rel='bookmark' title='Permanent Link: How Facebook Runs PHP and MySQL'>How Facebook Runs PHP and MySQL</a></li>
<li><a href='http://digitivity.org/1034/heises-2-click-solution-for-facebook-privacy' rel='bookmark' title='Permanent Link: Heise&#8217;s 2-Click Solution for Facebook Privacy'>Heise&#8217;s 2-Click Solution for Facebook Privacy</a></li>
<li><a href='http://digitivity.org/1111/facebook-timeline-will-let-you-know-who-unfriended-you' rel='bookmark' title='Permanent Link: Facebook Timeline Will Let You Know Who Unfriended You'>Facebook Timeline Will Let You Know Who Unfriended You</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/771/facebook-announces-a-better-faster-php-hiphop-php-c-plus-plus-compiler/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How Facebook Runs PHP and MySQL</title>
		<link>http://digitivity.org/165/how-facebook-runs-php-and-mysql</link>
		<comments>http://digitivity.org/165/how-facebook-runs-php-and-mysql#comments</comments>
		<pubDate>Sun, 12 Apr 2009 12:31:52 +0000</pubDate>
		<dc:creator>Digitivity</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[Web/Software Development]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[scaling]]></category>

		<guid isPermaLink="false">http://www.digitivity.org/?p=165</guid>
		<description><![CDATA[<p>Posted in <a href="http://digitivity.org/category/audience/developer" title="Developer">Developer</a><a href="http://digitivity.org/category/websoftware-development" title="Web/Software Development">Web/Software Development</a></p>I was surprised to know that Facebook runs on PHP. It also uses C++ and Java in places, but it&#8217;s the fact that it uses the little scripting language that could (PHP) is what is interesting. Aditya Agarwal of Facebook describes how the social networking giant does it in a presentation at QCon SF 2008. [...]


Related posts:<ol><li><a href='http://digitivity.org/771/facebook-announces-a-better-faster-php-hiphop-php-c-plus-plus-compiler' rel='bookmark' title='Permanent Link: Facebook Announces a Better, Faster PHP: HipHop PHP'>Facebook Announces a Better, Faster PHP: HipHop PHP</a></li>
<li><a href='http://digitivity.org/953/creating-a-database-in-mysql-with-mysql-query-browser-on-ubuntu-linux' rel='bookmark' title='Permanent Link: Creating a Database in MySQL with MySQL Query Browser on Ubuntu Linux'>Creating a Database in MySQL with MySQL Query Browser on Ubuntu Linux</a></li>
<li><a href='http://digitivity.org/161/will-the-real-mysql-please-stand-up' rel='bookmark' title='Permanent Link: Will the Real MySQL Please Stand Up?'>Will the Real MySQL Please Stand Up?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I was surprised to know that Facebook runs on PHP.</p>
<p>It also uses C++ and Java in places, but it&#8217;s the fact that it uses the little scripting language that could (PHP) is what is interesting. Aditya Agarwal of Facebook describes how the social networking giant does it in <a href="http://www.infoq.com/presentations/Facebook-Software-Stack">a presentation at QCon SF 2008</a>.</p>
<p>The story is being discussed on Slashdot <a href="http://linux.slashdot.org/article.pl?sid=09/04/11/1142246">here</a>.</p>


<p>Related posts:<ol><li><a href='http://digitivity.org/771/facebook-announces-a-better-faster-php-hiphop-php-c-plus-plus-compiler' rel='bookmark' title='Permanent Link: Facebook Announces a Better, Faster PHP: HipHop PHP'>Facebook Announces a Better, Faster PHP: HipHop PHP</a></li>
<li><a href='http://digitivity.org/953/creating-a-database-in-mysql-with-mysql-query-browser-on-ubuntu-linux' rel='bookmark' title='Permanent Link: Creating a Database in MySQL with MySQL Query Browser on Ubuntu Linux'>Creating a Database in MySQL with MySQL Query Browser on Ubuntu Linux</a></li>
<li><a href='http://digitivity.org/161/will-the-real-mysql-please-stand-up' rel='bookmark' title='Permanent Link: Will the Real MySQL Please Stand Up?'>Will the Real MySQL Please Stand Up?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://digitivity.org/165/how-facebook-runs-php-and-mysql/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: digitivity.org @ 2012-02-04 12:08:49 -->
