<?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"
	>

<channel>
	<title>Developer Tutorials' Webmaster Blog &#187; web hosting</title>
	<atom:link href="http://www.developertutorials.com/blog/tag/web-hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/blog</link>
	<description>Keeping webmasters up-to-date on technology.</description>
	<pubDate>Tue, 02 Sep 2008 14:59:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>PHP Web Hosts: The Version Dilemma</title>
		<link>http://www.developertutorials.com/blog/php/php-web-hosts-the-version-dilemma-23/</link>
		<comments>http://www.developertutorials.com/blog/php/php-web-hosts-the-version-dilemma-23/#comments</comments>
		<pubDate>Sat, 02 Feb 2008 09:29:22 +0000</pubDate>
		<dc:creator>Akash Mehta</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web]]></category>

		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/php-web-hosts-the-version-dilemma-23/</guid>
		<description><![CDATA[If you&#8217;ve been working with PHP for a while, you&#8217;ll be aware of the use of two major versions of PHP: version 4 and version 5. Of course, version 4 was released years ago, support for it was dropped recently and everyone is encouraged to upgrade to version 5. Version 6 has been in the [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been working with PHP for a while, you&#8217;ll be aware of the use of two major versions of PHP: version 4 and version 5. Of course, version 4 was released years ago, support for it was dropped recently and everyone is encouraged to upgrade to version 5. Version 6 has been in the works for quite a while as well. So why are so many hosts still restricting users to PHP 4?<br />
<span id="more-23"></span></p>
<p>If you purchase a cheap hosting account with many of the major web hosts around today, chances are they will be running PHP 4. The problem for web hosts is this: the PHP community may have moved on from version 4, but a lot of the code out there hasn&#8217;t.</p>
<p>Most of the cheap web hosts (those exploiting economies of scale) aim for the less professional PHP users; the amateur webmasters, the experimenters, the children even (I know a ten year old who has trouble with PHP versions). If they upgrade to PHP 5, they alienate a significant portion of their user base and render redundant all that existing code. They also have to brace for support overheads; people will start asking why their code no longer works.</p>
<p>The typical solution is to offer both PHP 4 and PHP 5. DreamHost offers this, with a simple domain-specific switch in the control panel. However, most of these hosts use cPanel- or Plesk-oriented architecture and server design, which does not easily allow for PHP version switching. There&#8217;s also the added overhead of maintaining two versions, deploying updates and patches to both, and the security risk that comes with running any additional software.</p>
<p>The only real solution is for all the major projects to explicitly require PHP 5. Quite a few do, with an installation check warning that PHP 5 is essential. Yet, without the support of the hosts, it&#8217;s a catch 22: either the hosts upgrade and lose customers, or the developers upgrade and lose users. Each side is slowly moving forward; the <a href="http://gophp5.org/" target="_blank">GoPHP5</a> project is helping speed up the transition a little.</p>
<p>Of course, after a point PHP 5 will reach critical mass among developers and so many apps will require PHP 5 that hosts will have no choice. Have we reached that point yet? Maybe. If not, it won&#8217;t be far off. In the meantime, we can only keep posting &#8220;Please upgrade&#8221; notices all over our software when we see a PHP 4 server. Happy coding.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d23" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/php/php-web-hosts-the-version-dilemma-23/&amp;title=PHP+Web+Hosts%3A+The+Version+Dilemma" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/php/php-web-hosts-the-version-dilemma-23/&amp;title=PHP+Web+Hosts%3A+The+Version+Dilemma" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/php/php-web-hosts-the-version-dilemma-23/&amp;title=PHP+Web+Hosts%3A+The+Version+Dilemma" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/php/php-web-hosts-the-version-dilemma-23/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
