Jump to content

PHP 4 to 5


Fyorl

Recommended Posts

The Elemental Design team were thinking of switching to better hosts and the one chosen gives the option of having PHP 4 or 5 installed on the server. Since I'm the Lead Programmer, the decision fell to me and I've read up a bit on the differences between the two but they don't have much relevance to me and Elemental Design.

I've used object-orientation and apparently one of the main differences between PHP 4 and 5 is its object-oriented (shouldn't that be orientated?) stuff. I was just wondering if I would have to rewrite all my classes to use stuff like __constructor where previously I'd just been using the class name as the method name or if it's back-compatible and either will work? If I do have to re-write them, is it worth it?

Thanks
Link to comment
Share on other sites

[a href=\"http://www.php.net/manual/en/migration5.php\" target=\"_blank\"]Here[/a] is what the manual has to say.

There are plenty of reasons to switch to php5, especially if you like using objects. The is allot of real OOP methods available in 5 that are simply not htere in 4.
Link to comment
Share on other sites

Thanks for that, migrating to PHP shouldn't be a problem and any new bugs should be easily ironed out without much effort. The thing is, I liked the simpler, PHP 4 way of doing OOP. PHP 5 doesn't seem worth it as I can't see myself using any of the new features.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.