View Full Version : Develop a commercial product for PHP5 or PHP4?

11-05-2006, 10:41 AM
As the topic title says, do you think a commercial product, like a CMS, would survive if it would not be compatible with PHP4?

11-05-2006, 12:16 PM
There is no easy answer to this question, as it all depends on the services you wish to provide and whether your customers have their servers configured with PHP5 or PHP4.

Of course, the benefit of developing a product in PHP4 is obvious, as customers with PHP5 will be able to use the same product.

I would recommend that you read this article (http://www.devshed.com/c/a/PHP/Whats-New-in-PHP-5/)and find out whether you would be missing added functionalities if you were to develop your product in PHP4.

Good luck

11-05-2006, 01:51 PM
Thanks for your reply, ess. I've been working with PHP5 for quite some time now, but only for my personal projects, so I know about all the cool stuff. But now that I'm working on something that I want to release in public, I'm wondering whether or not it's still necessary to make it backwards compatible with PHP4 (because of the large amount of people still using it) or not.

As you said, the advantage of the backwards compatibility is obvious. However, now that I've worked with PHP5 for a while, I know how great it is to use features like objects and exception, which are not available in PHP4. So for me it would be ideal to not have to think about making everything compatible with PHP4. Therefore I was wondering if it were possible to create a successful application that only works in PHP5, or is the PHP5 adoption still too low (I guess I should've been more clear in my first post about my real question)?

11-05-2006, 03:33 PM
You should make an estimate if PHP5 will be used by enough potential users by the time you finish developing your project.

11-05-2006, 11:58 PM
Hi Jero,

Yes, the adoption of PHP5 is very slow. In fact, if you look at the major players in website hosting in the UK, you will find that they still have not upgraded to PHP5 yet.

I think that should be a good indicator as a lot of people would go for shared hosting.

Good luck Jero.