Supporting PHP 4 necessary?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

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

Supporting PHP 4 necessary?

Post by kaisellgren »

Hi,

I'm creating a huge script open for public use. I have written it for PHP 5 (will soon work on PHP 6 too), but I am wondering is it worth to support PHP 4? How many PHP 4 only powered servers are there?
pkbruker
Forum Commoner
Posts: 32
Joined: Sun Aug 03, 2008 9:36 am
Location: Oslo, Norway

Re: Supporting PHP 4 necessary?

Post by pkbruker »

No use in supporting PHP4, and, if you're working with classes, supporting PHP4 sucks because of the bad OO support of PHP4.

If your server doesn't support PHP5, it's time to switch provider.
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: Supporting PHP 4 necessary?

Post by kaisellgren »

pkbruker wrote:No use in supporting PHP4, and, if you're working with classes, supporting PHP4 sucks because of the bad OO support of PHP4.

If your server doesn't support PHP5, it's time to switch provider.
That sounds good to me :) - I hate PHP 4 supporters...
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Supporting PHP 4 necessary?

Post by onion2k »

It's certainly about time people abandoned PHP4, but there are still a lot of servers out there that aren't running 5. If you want maximum penetration you'll have to support 4 as well. The real question is whether you want maximum, or if you want less hassle.

I still have to code for 4 on some work stuff but all my own stuff is running on 5.
Post Reply