PHP Migration
In August of last year, we decided to move from PHP4 to PHP5 for all our future PHP development. The transition was relatively painless, as the core libraries we use (ADOdb, PHPLens, some PEAR modules) are already PHP5 compliant and have been for some time. What’s nice about PHP5 is that it caught some errors that have been lingering in our code: PHP5 no longer allows a function to be defined twice, and some basic variable referencing errors that we missed previously.
We have ported our key web applications over to run on PHP5, but for some key customers with extremely large PHP4 code bases, we felt it was safer to keep them running on PHP4 for the time being as the cost of migration would be high; and we weren’t sure whether it was worth it as the customers seem to be happy with PHP4’s current performance.
Other things that we have changed is that we have transitioned to using XMLHttpRequest for all our Ajax calls. Formerly we were using the excellent JSRS library, but I can already see most programmers we hire in the future will be more familiar with XMLHttpRequest than JSRS. The nice thing about using XMLHttpRequest is that all XMLHttpRequests can be debugged using the excellent Firebug, a Firefox/Mozilla extension that is extremely useful for Javascript debugging.
I admit we are still retrograde when it comes to exploiting PHP5’s new functionality. Last month, we had to do a presentation so we moved our PHP5 web application to a notebook. Later I found out that notebook only had PHP4 installed. The web application worked flawlessly.
Other posts by Commoner
- Habitual Condemnation - November 21st, 2008
- Sandwitched Population - November 21st, 2008
- Clear the Dust - November 20th, 2008
- Exactly What They Want - November 20th, 2008
- Punjab Heats Up - November 19th, 2008
- Eyeball to Eyeball - November 18th, 2008
- No Surprises There - November 18th, 2008
- Yousuf Ready to Leave "Power" - November 18th, 2008
- OGRA Website Hacked By Indian Hackers - November 17th, 2008
- Friends Of Pakistan Again Disappoints - November 17th, 2008
Thank you for reading this post. You can now Leave A Comment (0) or Leave A Trackback.
Post Info
This entry was posted on Sunday, January 21st, 2007 and is filed under Technology . Tagged with:You can follow any responses to this entry through the Comments Feed . You can Leave A Comment, or A Trackback.
Previous Post: Where in Bhong? »
Next Post: Dreaming…! »






