Page 1 of 1

How do you write PHP 4 & 5 applications concurrently

Posted: Wed Nov 15, 2006 4:47 pm
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 :)

Posted: Wed Nov 15, 2006 4:53 pm
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.