PDA

View Full Version : How Prevalent is PHP 5.0 At This Point?


MadMax
2006-01-17, 10:45 PM
Just wondering if anyone's got an educated guess on this. I know it's been around for a while, but I know a lot of servers are still on on 4.X

5.0 has some goodies I'd like to make use of but I can't decide if it's a wise choice to require 5.0 in order for the script to run properly.

TIA

:)

odysseus
2006-01-17, 11:32 PM
I'm not the most knowlegable person on this one, but I think if you intend to distribute the script you are running, then I'd shoot for 4.x for portability. I still have 4.3.10 on my server, so a script using the fancy object oriented stuff in php5 wouldn't be much use for me.

Like I said, I'm not too skilled with PHP, so take it with a grain of salt.

Halfdeck
2006-01-18, 09:17 AM
Most of my codes require PHP 5 to run - I just can't stand PHP 4 at this point... it seems so damn ... whats the word? Primitive. I couldn't live without autoclass loaders and ability to run foreach on class variables.

Then again, I write scripts for my personal use only. My guess is like Odysseus said, you have to code for the common denominator. It sucks, but I think my Webair's virtual hosting account still runs on PHP 4.x.

nakki
2006-01-18, 11:41 AM
Think I recently saw a graph that showed PHP5 as being used on about 5% of PHP sites. Not much.

Then again, a recent PHP4 update broke quite a lot of scripts (at least some that I'm using), so this might prompt people to update...