Why we need to Migrate from PHP4 to PHP5
Below are few of the points which describes why it is necessary that we move our web application built on PHP4 to PHP5.
1) More functionality;
2) stability;
3) re-usability;
4) additional features
Major Differences are
1) Syntax changes;
2) Object model changes;
3) new functionality such as XML support
Development Tools:
) Unit testing;
2) PHPDoc;
3) profiler;
4) debugger;
5) E_STRICT setting
Migration Planning:
1) Syntax changes;
2) new keywords;
3) what can be kept;
4) what must be updated
Class and Object Changes:
Guidance on using references;
clone keywords;
rewriting objects
ansition of the PHP EngineUsing the compatibility mode option to work with PHP Engine I and then PHP Engine II
* Database Changes: Setting parameters; calling libraries
* Programming Basics: Best Practices; Debugging; Introduction to HTML
* Using New Features: PDO; XML; DOM; SOAP; etc.
* Optimization: Adopting native extensions; modifying the architecture; using new features
* Optimization Tools:Unit testing details; automated tools; testing and debugging techniques
So Once you start using PHP5 then you will say “PHP 4 End of Life and PHP 5 Future Forecast”













