PHP 4 or PHP 5 as a minimum requirement?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

PHP 4 or PHP 5 as a minimum requirement?

Post 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?
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: PHP 4 or PHP 5 as a minimum requirement?

Post 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/
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: PHP 4 or PHP 5 as a minimum requirement?

Post 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.
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: PHP 4 or PHP 5 as a minimum requirement?

Post by panic! »

Personally, I couldn't live without the features that php5 offers, but I am 5 years old and you are 90.
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: PHP 4 or PHP 5 as a minimum requirement?

Post by panic! »

By the way I'm talking about magic methods for things like activerecord.
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Re: PHP 4 or PHP 5 as a minimum requirement?

Post 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.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: PHP 4 or PHP 5 as a minimum requirement?

Post 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.
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: PHP 4 or PHP 5 as a minimum requirement?

Post by panic! »

Only 80? A spring chicken! Maybe Victoria on the desk next door will marry you after all! ;)
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: PHP 4 or PHP 5 as a minimum requirement?

Post by onion2k »

panic! wrote:Maybe Victoria on the desk next door will marry you after all! ;)
Get in! 8)
Post Reply