Im currently in the midst of learning OOP / Class based programming, however my problem lies in that im using PHP 4.3.9 and i know OOP is somewhat a hack & slash job on PHP4.
here is my situation, i have quite a few clients, constantly developing new applications / sites for them, however i love doing personal projects and trying out new ideas and im looking to move over into an OOP based system, should i continue with PHP4, using the syntax that is available to it, and hacking around things that are'nt implemented in PHP4, thus making sure my code is compatable with web servers or upgrade to PHP5, use the new syntax and hope to god my sites dont die on commercial web servers that dont use PHP5 yet?
Serious answers only please, and does anyone know an expected world-wise rollout of PHP5?
learning OOP, should i upgrade.
Moderator: General Moderators
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
Just for the facts, PHP4 can safely be run on PHP5 (there is even an option for it) ... and I run without it and it worked just as well for my projects.
However, I would say, if you like classes, then upgrade, there is nothing more wonderful than upgrading from PHP4 to PHP5. just auto-inclusion makes your life a little easier, exceptions, and (oh finally) classes are referenced by default.
However, I would say, if you like classes, then upgrade, there is nothing more wonderful than upgrading from PHP4 to PHP5. just auto-inclusion makes your life a little easier, exceptions, and (oh finally) classes are referenced by default.