How to compress JSON with PHP?
I'm writing a little analysis page which will help me hunt down bugs in an application. In essence it allows to visually compare actual data and log entries, plus perform a bit of analysis on the data. Since this is for debugging only and since I will be deploying this on the live site I want it to have as little server load as possible. Several of the analysis options will include rather heavy substring searching or n 2 operations, so I'm going to offload this to the client. This means that the PHP page will just take the data from the tables and logs, JSON some of it, and write it out. The