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 ...

Get Core PHP Programming: Using PHP to Build Dynamic Web Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.