FirePHP- Firebug Extension for AJAX Development through PHP Method Call

By Angsuman Chakraborty, Gaea News Network
Thursday, February 12, 2009

Firebug has been an incredibly useful firefox add- ons for developers. Now, there is more to it, Firephp. FirePHP enables you to log to your Firebug Console using a simple PHP method call. FirePHP is ideally suited for AJAX development where clean JSON or XML responses are required. All data is sent via a set of X-FirePHP-Data response headers. This means that the debugging data will not interfere with the content on your page. You must have Firebug installed and the Net panel enabled to use this extension.


If you have installed the FirePHP Extension, it is time to download a Server Library.

You require the FirePHPCore library version 0.2.1. Download or install from PEAR:

pear channel-discover
pear install firephp/FirePHPCore

Set Up

Let’s assume your document root is /www/ and it is in your PHP include path.

Step 1: Locate the server library

Locate the /lib/FirePHPCore folder in the FirePHPCore archive and move it into your document root.

You can skip this step if you are using PEAR. Make sure the PEAR repository is in your include path.

Step 2: Include the server library

Create a file at /www/Index.php and open it in your editor.


Step 3: Start output buffering


You can find the plugin here

will not be displayed