• Home

Logo

Navigation
  • Home
  • Articles
    • Content Writing
    • Design
    • General
    • Internet Marketing
    • Social Media
    • Tools and Tips
    • Usability
    • Web Hosting Articles
  • Tutorials
    • AJAX Tutorials
    • ASP Tutorials
    • C# Tutorials
    • CGI and Perl Tutorials
    • CSS Tutorials
    • Flash Tutorials
    • HTML Tutorials
    • Illustrator Tutorials
    • Java Tutorials
    • JavaScript Tutorials
    • Linux Tutorials
    • Miscellaneous Tutorials
    • MySQL Tutorials
    • Photoshop Tutorials
    • PHP Tutorials
    • Python Tutorials
    • Wireless Tutorials
    • WordPress Tutorials
    • XML Tutorials
  • Scripts
    • AJAX Scripts
    • ASP Scripts
    • ASP.NET Scripts
    • CGI & Perl Scripts
    • Flash Scripts
    • Java Scripts
    • JavaScript Scripts
    • PHP Scripts
    • Python Scripts
    • Remotely Hosted
    • Tools and Utilities
    • XML Scripts
  • Answers
  • Online Services
  • Tools

PHP Web Hosts: The Version Dilemma

By Akash Mehta | on Feb 2, 2008 | 0 Comment
General PHP Tutorials
  • Tweet
  • Share
  • Tweet
  • Share

If you’ve been working with PHP for a while, you’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?

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’t.

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.

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’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.

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’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 GoPHP5 project is helping speed up the transition a little.

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’t be far off. In the meantime, we can only keep posting “Please upgrade” notices all over our software when we see a PHP 4 server. Happy coding.

Share this story:
  • tweet

Tags: PHP Tutorialsweb hosting

Author Description

No Responses to “PHP Web Hosts: The Version Dilemma”

You must be logged in to post a comment.

Connect With Us

RSSSubscribe 0Followers 497Likes
  • Popular
  • Recent
  • Comments
  • Creating Energy Spheres in Photoshop

    Apr 15, 2008 - 96 Comments
  • Easy Screen Scraping in PHP with the Simple HTML DOM Library

    Aug 6, 2008 - 20 Comments
  • Calculating date difference more precisely in PHP

    Mar 7, 2008 - 13 Comments
  • When Does Hosting Your Website in the Cloud Make Sense?

    Oct 8, 2010 - 2 Comments
  • Fun with the Microsoft Managed Extensibility Framework Part 2

    Oct 6, 2010 - 0 Comment
  • Fun with the Microsoft Managed Extensibility Framework Part 1

    Sep 22, 2010 - 0 Comment
  • Website Management on the go with the iPad

    I appreciated your post, but I was looking for something I didn't...
    November 24, 2012 - drmoderator
  • Creating Energy Spheres in Photoshop

    I'm a little stuck down here especially at the step of creating the...
    November 23, 2012 - sarah
  • Running background processes in PHP

    Can you give an example? As see it, you can use this only when you...
    November 16, 2012 - Shaked Klein Orbach
Developer Resources
  • Tutorial Directory
  • Learn HTML
  • Learn PHP
  • Learn CSS
  • Learn AJAX
  • Learn JavaScript
  • Learn Pear
  • White Papers
  • Resources
    • NetVisits Web Directory
    • Realtor Pixels
    • Answers On The Run
    • Ask A Geek
  • Recent Posts

    • When Does Hosting Your Website in the Cloud Make Sense?
    • Fun with the Microsoft Managed Extensibility Framework Part 2
    • Fun with the Microsoft Managed Extensibility Framework Part 1
    • Website Management on the go with the iPad
    • Code Contracts in C# 4.0 – Part 1

    Calendar

    June 2013
    M T W T F S S
    « Oct    
     12
    3456789
    10111213141516
    17181920212223
    24252627282930

    Recent Comments

    • drmoderator on Website Management on the go with the iPad
    • sarah on Creating Energy Spheres in Photoshop
    • Shaked Klein Orbach on Running background processes in PHP
    • Thomas Cuvillier on How To Upload Files Using PHP
    • rizal aditya on Extracting text from Word Documents via PHP and COM
    • Home
    © 2003 - 2013 DeveloperTutorials.com. All Rights Reserved. Privacy Policy.