»User: »Password:   Remember Me? 
CodeCrunch Webmaster Forums / Programming and Development / PHP / Differences between PHP4 and PHP5
Posted:  25 Apr 2006 11:44
Hi,
I am an old PHP4 programmer; at the moment I don't see the point to switch to PHP5 since it would require some learning curve, but what are the real differences between the two versions? Is there a real improvement? As far as I know the only difference is for the implementation of an object oriented programming structure, but I don't know of further innovations. Any help is greatly appreciated!
Posted:  28 Apr 2006 11:30   Last Edited By: Thisn2s
I think there are very few. There's that Zend Engine II among everything else, but I believe they prioritized the transition from PHP4 and PHP5 so that it won't be much of a bother for PHP coders. So it's probably safe to switch.

Just don't forget that they didn't default MySQL in the PHP5 compiler - you'll have to turn it on manually.


Here's a link: http://us3.php.net/manual/en/faq.migration5.php
Posted:  28 Apr 2006 17:27
From what I can gather it has a bunch of new XML support (example - reading data into arrays automagically) - which is good news for those using parsing methods to get and manipulate XML data.

I'm looking forward to learning more example uses of the implementation of iterators. We get one good example on that page of using it to read a directory.

In the next couple of months, I may actually do a local install and write a few small scripts that take advantage of some new features. I'll be sure to write a few small tutorials to share what I come up with.
Posted:  17 Jun 2006 06:30
Good post, thanks for the info.

- Q