How do you write PHP 4 & 5 applications concurrently

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
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

How do you write PHP 4 & 5 applications concurrently

Post by alex.barylski »

Do you even bother keeping pace?

When a new version of PHP comes out do you drop that version?

For instance, you have a product line, started on PHP 3...now PHP 6 is around the corner...

Do you support version 2 of your own product in PHP 3, 4, 5 & 6 or do you drop early versions and force users into upgrading PHP...

Do you follow M$ lead and only update versions to match the latest version of PHP?

What techniques do you use to support as many users as possible? Do you use the same core code but develop for the smallest common denominator. For example: You have some core code implemented solely as functions which use PHP 3 functions, etc?

Just curious :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I write them in 4 and fork them to 5. Then I create two folders in my include folder, PHP4 and PHP5, then, depending on the PHP version, include from the appropriate folder.
Post Reply