NOTE: If you remove the FirePHP include call but still have FirePHP logging calls in your code you will get a fatal error!
The proper solution is to disable FirePHPCore 0.3:
$firephp->setEnabled(false);
See API reference for more information.
All pages/scripts in your application/website should call a central bootstrap file before doing anything else. The code above should be in this bootstrap file which will allow you to easily disable FirePHP for the entire application when deployed:
bootstrap.php
~
ob_start();
require_once('FirePHPCore/FirePHP.class.php');
$firephp = FirePHP::getInstance(true);
// always disable FirePHP first - best practice
$firephp->setEnabled(false);
// only enable if in dev environment - best practice
if ($isDevMode) {
$firephp->setEnabled(true);
}
FYI, If using FirePHP 1.0 logging messages will only be sent if an authorized client is detected eliminating the need for the code above.