PHP Constants: How many is too many?

What are PHP constants? A constant allows you to define data that will not change during execution. Think of it like a variable that is always the same. This may not sound very useful at first but I am going Read More …

Building a PHP Profiler Part 3: Database Load

Profiling Database Load Profiling database load is as simple as counting the number of times that a query is run on the database. Last week we added memory reporting to our profiler. This week we will update it to handle database queries and find Read More …

Building a PHP Profiler Part 2: PHP Memory Usage

Last week’s post included a simple PHP profiler class. This week we will expand on it and add in features to report on PHP memory usage within your script. We also add in some percentage reporting to make it easier Read More …

Building a PHP Profiler

What is a PHP Profiler? A profiler quickly becomes an absolute requirement for any large PHP project. Profiling provides the tools to look at your apps performance at different points within your code. By analyzing the time it takes to Read More …