Posted By

rbroen on 07/28/09


Tagged

php firebug firephp


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

vali29
irishsk
umang_nine


FirePHP example


 / Published in: PHP
 

URL: http://www.firephp.org/

This is my first encounter with FirePHP, I might be using this more often. FirePHP lets you output log lines like console.log would in FireBug. You will need the FirePhp plug-in for Firefox and you will have to upload the FirePHP lib to your server.

  1. // start ouput buffering
  2.  
  3. // be sure you have uploaded the FirePHP lib on your server
  4. require_once('lib/FirePHPCore/FirePHP.class.php');
  5.  
  6. // instantiate firephp, false would have turned logging off
  7. $firephp = FirePHP::getInstance(true);
  8.  
  9. // See some more examples at:
  10. // http://www.firephp.org/HQ/Use.html
  11. $firephp->log('Message','Bob was here');

Report this snippet  

You need to login to post a comment.