Firephp

We like firebug , We like PHP , if so, We also begin to  like FirePHP !!!

Using firephp , you can debug your php code. Firephp is a firefox plugin which works on firebug console.

In our php life, we know we can use echo function to print or debug the value of a variable and we usually do that. But if there is any header function such as image manipulation, redirection etc, if you use echo or print either it leads into unwanted results or we get the common error, cannot modify header information headers already sent  !!!

The one solution for this is, writing the variable value into a log file and check the log file after execution. But the advantage of fire php is, you can log messages, or value of a variable and can see through firebug console.

For example:

<?php $fire_php->log(‘Enter into function’); ?>

<?php $fire_php->log($result); ?>

You can also categorize your error as warning or error . eg:

<?php $fire_php->warn(‘Variable value is not set’)?> or

<?php $fire_php->error(‘No parameter passed’) ?>

For more go to: http://www.firephp.org/

2 Comments , , , , , , , ,

2 Responses to “Firephp”

  1. Sanjeev September 7, 2009 at 9:59 pm #

    I found the tips provided in this post very useful. I was facing the php echo issue and tried to find solution bu googling that. Landed to your page and now its resolved. Thanks buddy.

  2. Annon September 21, 2009 at 2:30 pm #

    Hey does it work?

Leave a Reply

More in php (42 of 101 articles)


In a php project, if we get the requirement , we usually start design and database. But the data ...