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
  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');

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.