FirePHP example

/ Published in: PHP
Save to your folder(s)

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.

Copy this code and paste it in your HTML
  1. // start ouput buffering
  3. // be sure you have uploaded the FirePHP lib on your server
  4. require_once('lib/FirePHPCore/FirePHP.class.php');
  6. // instantiate firephp, false would have turned logging off
  7. $firephp = FirePHP::getInstance(true);
  9. // See some more examples at:
  10. //
  11. $firephp->log('Message','Bob was here');


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.