Keep up to date

If you are not using it already, consider upgrading to the latest version of PHP. Fixes and tweaks to slow code are being made to all the time, so it is worth taking advantage of all the hard work going on. Note that as the fix to many PHP bugs is "upgrade to the latest version", this is generally always the best option - if you are running anything older than 5.2, upgrade; if you are on anything before 5.0, upgrade right now; if you are on anything before 4.4, what's taking you so long? Use the phpinfo() function to get your version number and information about activated modules.

Do keep one thing in mind, however: the early bird may get the worm, but the second mouse gets the cheese. That is, don't feel obliged to update to the latest version of PHP just because it is new - let others try it out and find any obvious errors before you upgrade.

 

Next chapter: Cache array data >>

Previous chapter: Listen to all errors, big and small

Jump to:

 

Home: Table of Contents

Follow us on Identi.ca or Twitter

Username:   Password:
Create Account | About TuxRadar