O'Reilly logo

Core PHP Programming: Using PHP to Build Dynamic Web Sites by Leon Atkinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 22. EFFICIENCY AND DEBUGGING

Topics in This Chapter

  • Measuring Performance

  • Fetching Database Query Results

  • When to Store Content in a Database

  • In-Line Debugging

  • Remote Debugging

  • Simulating HTTP Connections

In this final chapter, I will touch upon some issues of efficiency and debugging, which are more art than science. Efficiency should not be your first concern when writing code. You must first write code that works, and hopefully your second concern is keeping the code maintainable. As I write this, the Zend optimizer has become available. An optimizer can reduce memory use and execution time for you behind the scenes, but it can't address all issues of efficiency.

You will pick up some tactical design issues as you gain more experience in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required