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
- Suicide Bombing at Orakzai Agency: Jirgas Should Not Deter - October 11th, 2008
- Capital Rocks Again - October 9th, 2008
- Bajaur Action Succeeding - October 9th, 2008
- Composite Sessions - October 9th, 2008
- Gates Day Dream - October 9th, 2008
- Another Mistake By Zardari? - October 7th, 2008
- Not So Strange Admission - October 5th, 2008
- Gallop's Trot - October 5th, 2008
- Sarabjit's Pardon - October 5th, 2008
- Not So Kingly - October 2nd, 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…! »
- State of Pakistan: What Next?
- Suicide Attacks and Islam
- What is the government tying to do anyway?
- Suicide Bombing at Orakzai Agency: Jirgas Should Not Deter
- US will not attack Pakistan
- Capital Rocks Again
- Investors from Pakistan buying property worth millions of dollars at UAE Cityscape 2008
- Bajaur Action Succeeding
- Extra curricular activities of our political elites
- Composite Sessions






