Page 1 of 1
PHP 4 or PHP 5 as a minimum requirement?
Posted: Mon Oct 27, 2008 3:25 pm
by kaisellgren
Hi,
Can someone give me any links to PHP 4 market share? I would like to know how many people still need a script that works on PHP 4. I'm worried about PHP.net releasing newer PHP 4 version all over again and again. How many servers are using PHP 4? Should I base my script on code that works on PHP 4?
Re: PHP 4 or PHP 5 as a minimum requirement?
Posted: Mon Oct 27, 2008 4:23 pm
by panic!
You can't even write good, flexible code without the object-oriented features of php5.
I don't know what the market-share is, but I haven't come across a mainstream host that uses php4 in a while actually.
http://gophp5.org/
Re: PHP 4 or PHP 5 as a minimum requirement?
Posted: Mon Oct 27, 2008 4:45 pm
by onion2k
panic! wrote:You can't even write good, flexible code without the object-oriented features of php5.
Don't be silly. Of course you can. People did for years and years. PHP5's objects have a number of advantages over those in 4, but code quality isn't one.
Re: PHP 4 or PHP 5 as a minimum requirement?
Posted: Mon Oct 27, 2008 4:49 pm
by panic!
Personally, I couldn't live without the features that php5 offers, but I am 5 years old and you are 90.
Re: PHP 4 or PHP 5 as a minimum requirement?
Posted: Mon Oct 27, 2008 4:51 pm
by panic!
By the way I'm talking about magic methods for things like activerecord.
Re: PHP 4 or PHP 5 as a minimum requirement?
Posted: Mon Oct 27, 2008 4:52 pm
by jmut
kaisellgren wrote:... I'm worried about PHP.net releasing newer PHP 4 version all over again and again.....
I don't think there is something to worry there. php 4 is officially dead and not supported anymore. Only thing that may come up is security patch. It's time to move on so I suggest you insist on php5.....at worst of course offer solutions for php 4 to php5 migration.
Re: PHP 4 or PHP 5 as a minimum requirement?
Posted: Mon Oct 27, 2008 4:52 pm
by onion2k
panic! wrote:Personally, I couldn't live without the features that php5 offers, but I am 5 years old and you are 90.
I'd rather not write code for 4 any more because I like some of the things in 5 too, I'm just saying they're not a
requirement for writing good code.
And I'm not 90. I resent that.
I'm only 80.
Re: PHP 4 or PHP 5 as a minimum requirement?
Posted: Mon Oct 27, 2008 4:58 pm
by panic!
Only 80? A spring chicken! Maybe Victoria on the desk next door will marry you after all!

Re: PHP 4 or PHP 5 as a minimum requirement?
Posted: Mon Oct 27, 2008 5:00 pm
by onion2k
panic! wrote:Maybe Victoria on the desk next door will marry you after all!

Get in!
