p. “Terry Chay”:http://terrychay.com/blog has posted a “very interesting article”:http://terrychay.com/blog/article/clever-http.shtml on his blog about debugging PHP with “FireBug”:http://www.getfirebug.com/. It seems it all started when he was reading up on “FirePHP”:http://www.firephp.org. First, let me say, if you’ve not played with FireBug and FirePHP, I highly recommend you go download and install them. If nothing else, just to show you what creative minds can come up with. FirePHP an ingenious piece of work and a useful tool in it’s own right.
p. However, useful isn’t enough for Terry, he had to dig into it and figure out how it’s done so he can make it better. Here, I’ll give you a small sample.
bq. The problem is I want to use it on the existing site without changing anything. The way the PEAR library is written, it doesn’t play nice with output buffering or header calls, so I tried my own version.
p. Terry explains what FirePHP is doing and then gives you a link to download some (PHP 4 compatible) code he wrote to make it even easier to work with.
p. The blog post is a short read but if you are looking for something to keep you busy over the weekend, this one will do it. The possibilities for debugging…and other uses are really interesting.